pub struct UnitInterval;Expand description
Closed unit interval 0.0..=1.0.
Trait Implementations§
Source§impl Clone for UnitInterval
impl Clone for UnitInterval
Source§fn clone(&self) -> UnitInterval
fn clone(&self) -> UnitInterval
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 UnitInterval
Source§impl Debug for UnitInterval
impl Debug for UnitInterval
Source§impl Default for UnitInterval
impl Default for UnitInterval
Source§fn default() -> UnitInterval
fn default() -> UnitInterval
Returns the “default value” for a type. Read more
impl Eq for UnitInterval
Source§impl FloatBounds for UnitInterval
impl FloatBounds for UnitInterval
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 UnitInterval
impl PartialEq for UnitInterval
impl StructuralPartialEq for UnitInterval
Auto Trait Implementations§
impl Freeze for UnitInterval
impl RefUnwindSafe for UnitInterval
impl Send for UnitInterval
impl Sync for UnitInterval
impl Unpin for UnitInterval
impl UnsafeUnpin for UnitInterval
impl UnwindSafe for UnitInterval
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.