#[non_exhaustive]pub enum ValueInRange {
Above(f32),
Below(f32),
Exact(f32),
}Expand description
Value in range variants.
JSON representation is adjacently tagged and in lowercase snake case. Example:
{
"value_type": "above",
"value": 3.5
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Above(f32)
Above specified number.
Below(f32)
Below specified number.
Exact(f32)
Same as specified number.
Trait Implementations§
Source§impl Clone for ValueInRange
impl Clone for ValueInRange
Source§fn clone(&self) -> ValueInRange
fn clone(&self) -> ValueInRange
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ValueInRange
impl Debug for ValueInRange
Source§impl<'de> Deserialize<'de> for ValueInRange
impl<'de> Deserialize<'de> for ValueInRange
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Div<f32> for ValueInRange
impl Div<f32> for ValueInRange
Source§impl FromStr for ValueInRange
impl FromStr for ValueInRange
Source§impl Mul<f32> for ValueInRange
impl Mul<f32> for ValueInRange
Source§impl PartialEq for ValueInRange
impl PartialEq for ValueInRange
Source§impl Serialize for ValueInRange
impl Serialize for ValueInRange
impl Copy for ValueInRange
impl StructuralPartialEq for ValueInRange
Auto Trait Implementations§
impl Freeze for ValueInRange
impl RefUnwindSafe for ValueInRange
impl Send for ValueInRange
impl Sync for ValueInRange
impl Unpin for ValueInRange
impl UnwindSafe for ValueInRange
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more