pub enum FloatRangeViolation {
NotComparable,
BelowLowerBound,
AboveUpperBound,
}Expand description
Reason a float range validation failed.
Variants§
NotComparable
The value could not be compared to the configured bounds, such as NaN.
BelowLowerBound
The value was below the lower bound.
AboveUpperBound
The value was above the upper bound.
Implementations§
Trait Implementations§
Source§impl Clone for FloatRangeViolation
impl Clone for FloatRangeViolation
Source§fn clone(&self) -> FloatRangeViolation
fn clone(&self) -> FloatRangeViolation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FloatRangeViolation
impl Debug for FloatRangeViolation
Source§impl PartialEq for FloatRangeViolation
impl PartialEq for FloatRangeViolation
Source§fn eq(&self, other: &FloatRangeViolation) -> bool
fn eq(&self, other: &FloatRangeViolation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Valuable for FloatRangeViolation
Available on crate feature valuable only.
impl Valuable for FloatRangeViolation
Available on crate feature
valuable only.impl Copy for FloatRangeViolation
impl Eq for FloatRangeViolation
impl StructuralPartialEq for FloatRangeViolation
Auto Trait Implementations§
impl Freeze for FloatRangeViolation
impl RefUnwindSafe for FloatRangeViolation
impl Send for FloatRangeViolation
impl Sync for FloatRangeViolation
impl Unpin for FloatRangeViolation
impl UnsafeUnpin for FloatRangeViolation
impl UnwindSafe for FloatRangeViolation
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