pub struct Number(pub f32);Expand description
A CSS <number> value.
Wraps f32 so call sites carry intent (Number(1.0) vs. a bare
1.0 which could be a percentage, an opacity, or a flex factor).
Tuple Fields§
§0: f32Implementations§
Trait Implementations§
impl Copy for Number
impl StructuralPartialEq for Number
Auto Trait Implementations§
impl Freeze for Number
impl RefUnwindSafe for Number
impl Send for Number
impl Sync for Number
impl Unpin for Number
impl UnsafeUnpin for Number
impl UnwindSafe for Number
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