Enum fxbox_taxonomy::values::Range
[−]
[src]
pub enum Range {
Leq(Value),
Geq(Value),
BetweenEq {
min: Value,
max: Value,
},
OutOfStrict {
min: Value,
max: Value,
},
Eq(Value),
}A comparison between two values.
Variants
Leq | Leq(x) accepts any value v such that v <= x. | |||||
Geq | Geq(x) accepts any value v such that v >= x. | |||||
BetweenEq | BetweenEq {min, max} accepts any value v such that Fields
| |||||
OutOfStrict | OutOfStrict {min, max} accepts any value v such that Fields
| |||||
Eq | Eq(x) accespts any value v such that v == x |
Methods
impl Range
fn contains(&self, value: &Value) -> bool
Determine if a value is accepted by this range.
fn get_type(&self) -> Result<Type, ()>
Get the type associated to this range.
If this range has a min and a max with conflicting types,
produce an error.