Lines Matching full:limits
41 if let Some(limits) = Limits::of(new_repr) { in insert()
43 if limits.min <= past && past <= limits.max { in insert()
47 "discriminant value `{}` is outside the limits of {}", in insert()
97 for limits in &LIMITS { in inferred_repr()
98 if limits.min <= min && max <= limits.max { in inferred_repr()
99 return Ok(limits.repr); in inferred_repr()
136 if let Some(limits) = Limits::of(expected_repr) { in insert()
137 if discriminant < limits.min || limits.max < discriminant { in insert()
139 "discriminant value `{}` is outside the limits of {}", in insert()
277 struct Limits { struct
283 impl Limits { argument
284 fn of(repr: Atom) -> Option<Limits> { in of() argument
285 for limits in &LIMITS { in of()
286 if limits.repr == repr { in of()
287 return Some(*limits); in of()
294 const LIMITS: [Limits; 8] = [ constant
295 Limits {
300 Limits {
305 Limits {
310 Limits {
315 Limits {
320 Limits {
325 Limits {
330 Limits {