pub struct BoundedFraction(/* private fields */);Expand description
Bounded fraction in [0.0, 1.0].
Implementations§
Trait Implementations§
Source§impl Clone for BoundedFraction
impl Clone for BoundedFraction
Source§fn clone(&self) -> BoundedFraction
fn clone(&self) -> BoundedFraction
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 BoundedFraction
impl Debug for BoundedFraction
Source§impl<'de> Deserialize<'de> for BoundedFraction
impl<'de> Deserialize<'de> for BoundedFraction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BoundedFraction
impl PartialEq for BoundedFraction
Source§fn eq(&self, other: &BoundedFraction) -> bool
fn eq(&self, other: &BoundedFraction) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for BoundedFraction
impl Serialize for BoundedFraction
impl Copy for BoundedFraction
impl StructuralPartialEq for BoundedFraction
Auto Trait Implementations§
impl Freeze for BoundedFraction
impl RefUnwindSafe for BoundedFraction
impl Send for BoundedFraction
impl Sync for BoundedFraction
impl Unpin for BoundedFraction
impl UnsafeUnpin for BoundedFraction
impl UnwindSafe for BoundedFraction
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