pub enum ValueOr {
Less = -1,
Nearest = 0,
Greater = 1,
}
Expand description
Used to restrict hw parameters. In case the submitted value is unavailable, in which direction should one search for available values?
Variants§
Less = -1
The value set is the submitted value, or less
Nearest = 0
The value set is the submitted value, or the nearest
Greater = 1
The value set is the submitted value, or greater
Trait Implementations§
source§impl Ord for ValueOr
impl Ord for ValueOr
source§impl PartialEq for ValueOr
impl PartialEq for ValueOr
source§impl PartialOrd for ValueOr
impl PartialOrd for ValueOr
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ValueOr
impl Eq for ValueOr
impl StructuralEq for ValueOr
impl StructuralPartialEq for ValueOr
Auto Trait Implementations§
impl RefUnwindSafe for ValueOr
impl Send for ValueOr
impl Sync for ValueOr
impl Unpin for ValueOr
impl UnwindSafe for ValueOr
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