pub struct Ratio(/* private fields */);Expand description
A number from 0 to 1 inclusive, such as a diff threshold, so that a percentage cannot be passed by mistake.
Implementations§
Trait Implementations§
impl Copy for Ratio
Source§impl PartialOrd for Ratio
impl PartialOrd for Ratio
impl StructuralPartialEq for Ratio
Auto Trait Implementations§
impl Forget for Ratio
impl Freeze for Ratio
impl Move for Ratio
impl RefUnwindSafe for Ratio
impl Send for Ratio
impl Sync for Ratio
impl Unpin for Ratio
impl UnsafeUnpin 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