pub struct NonNegative;Expand description
Non-negative floats (>= 0.0).
Trait Implementations§
Source§impl Clone for NonNegative
impl Clone for NonNegative
Source§fn clone(&self) -> NonNegative
fn clone(&self) -> NonNegative
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 NonNegative
Source§impl Debug for NonNegative
impl Debug for NonNegative
Source§impl Default for NonNegative
impl Default for NonNegative
Source§fn default() -> NonNegative
fn default() -> NonNegative
Returns the “default value” for a type. Read more
impl Eq for NonNegative
Source§impl FloatBounds for NonNegative
impl FloatBounds for NonNegative
Source§const EXCLUSIVE_MIN: bool = false
const EXCLUSIVE_MIN: bool = false
When
true, values equal to MIN are rejected.Source§const EXCLUSIVE_MAX: bool = false
const EXCLUSIVE_MAX: bool = false
When
true, values equal to MAX are rejected.Source§impl PartialEq for NonNegative
impl PartialEq for NonNegative
impl StructuralPartialEq for NonNegative
Auto Trait Implementations§
impl Freeze for NonNegative
impl RefUnwindSafe for NonNegative
impl Send for NonNegative
impl Sync for NonNegative
impl Unpin for NonNegative
impl UnsafeUnpin for NonNegative
impl UnwindSafe for NonNegative
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.