pub struct Percent(pub f32);Expand description
A percentage, held as the number before the sign.
A font size, a line height and a column width can each be written as one, relative to something the renderer knows and this crate does not.
Tuple Fields§
§0: f32Implementations§
Trait Implementations§
impl Copy for Percent
Source§impl PartialOrd for Percent
impl PartialOrd 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 UnsafeUnpin 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