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 PartialOrd for ValueOr
impl PartialOrd for ValueOr
impl Copy for ValueOr
impl Eq for ValueOr
impl StructuralPartialEq for ValueOr
Auto Trait Implementations§
impl Freeze for ValueOr
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