Lines Matching full:limits
42 if let Some(limits) = Limits::of(new_repr) { in insert()
44 if limits.min <= past && past <= limits.max { in insert()
48 "discriminant value `{}` is outside the limits of {}", in insert()
98 for limits in &LIMITS { in inferred_repr()
99 if limits.min <= min && max <= limits.max { in inferred_repr()
100 return Ok(limits.repr); in inferred_repr()
137 if let Some(limits) = Limits::of(expected_repr) { in insert()
138 if discriminant < limits.min || limits.max < discriminant { in insert()
140 "discriminant value `{}` is outside the limits of {}", in insert()
278 struct Limits { struct
284 impl Limits { impl
285 fn of(repr: Atom) -> Option<Limits> { in of() argument
286 for limits in &LIMITS { in of()
287 if limits.repr == repr { in of()
288 return Some(*limits); in of()
295 const LIMITS: [Limits; 8] = [ constant
296 Limits {
301 Limits {
306 Limits {
311 Limits {
316 Limits {
321 Limits {
326 Limits {
331 Limits {