#[repr(C, packed(1))]pub struct Percent(/* private fields */);
Expand description
Basic struct for working with integer percentages allowing values greater than 100.
Implementations§
Trait Implementations§
source§impl Ord for Percent
impl Ord for Percent
source§impl PartialEq for Percent
impl PartialEq for Percent
source§impl PartialOrd for Percent
impl PartialOrd for Percent
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Percent
impl Eq for Percent
impl StructuralPartialEq for Percent
Auto Trait Implementations§
impl Freeze for Percent
impl RefUnwindSafe for Percent
impl Send for Percent
impl Sync for Percent
impl Unpin for Percent
impl UnwindSafe for Percent
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