pub enum NumericBound {
Signed(i64),
Unsigned(u64),
FloatBits(u64),
}Expand description
— Numeric restrictions —
A numeric bound usable across every numeric representation. Float bounds
carry canonical IEEE-754 f64 bits (NaN/inf rejected, -0.0 normalized);
comparisons decode the bits to f64 and compare numerically.
Variants§
Trait Implementations§
Source§impl Clone for NumericBound
impl Clone for NumericBound
Source§fn clone(&self) -> NumericBound
fn clone(&self) -> NumericBound
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 moreimpl Copy for NumericBound
Auto Trait Implementations§
impl Freeze for NumericBound
impl RefUnwindSafe for NumericBound
impl Send for NumericBound
impl Sync for NumericBound
impl Unpin for NumericBound
impl UnsafeUnpin for NumericBound
impl UnwindSafe for NumericBound
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