#[non_exhaustive]pub enum RangeViolation {
BelowMin(Value),
AboveMax(Value),
OffIncrement {
base: i64,
inc: i64,
},
Unrepresentable,
}Expand description
How a value falls outside what a node accepts.
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.
BelowMin(Value)
Below the minimum in force.
AboveMax(Value)
Above the maximum in force.
OffIncrement
Not the minimum plus a whole number of increments.
Unrepresentable
The node’s register cannot hold it: too wide for its bytes, beyond an
IEEE f32, not finite, or not a whole raw value at the node’s scale.
Trait Implementations§
Source§impl Clone for RangeViolation
impl Clone for RangeViolation
impl Copy for RangeViolation
Source§impl Debug for RangeViolation
impl Debug for RangeViolation
Source§impl Display for RangeViolation
impl Display for RangeViolation
Source§impl PartialEq for RangeViolation
impl PartialEq for RangeViolation
impl StructuralPartialEq for RangeViolation
Auto Trait Implementations§
impl Freeze for RangeViolation
impl RefUnwindSafe for RangeViolation
impl Send for RangeViolation
impl Sync for RangeViolation
impl Unpin for RangeViolation
impl UnsafeUnpin for RangeViolation
impl UnwindSafe for RangeViolation
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