pub struct Ratio(/* private fields */);
Expand description
A struct that represents a ratio and determines the legal value(s) for a given type. Clamps any values that fall beyond the valid legal range for the type. Used to convert a type into a valid percentage representation.
Implementations§
Trait Implementations§
Source§impl Ord for Ratio
impl Ord for Ratio
Source§impl PartialOrd for Ratio
impl PartialOrd for Ratio
impl Copy for Ratio
impl Eq for Ratio
impl StructuralPartialEq for Ratio
Auto Trait Implementations§
impl Freeze for Ratio
impl RefUnwindSafe for Ratio
impl Send for Ratio
impl Sync for Ratio
impl Unpin for Ratio
impl UnwindSafe for Ratio
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