pub struct Dimension<'a> {
pub number: &'a str,
pub unit: &'a str,
}Expand description
A CSS dimension, decomposed into its numeric and unit parts
Fields§
§number: &'a str§unit: &'a strImplementations§
Trait Implementations§
impl<'a> Eq for Dimension<'a>
impl<'a> StructuralPartialEq for Dimension<'a>
Auto Trait Implementations§
impl<'a> Freeze for Dimension<'a>
impl<'a> RefUnwindSafe for Dimension<'a>
impl<'a> Send for Dimension<'a>
impl<'a> Sync for Dimension<'a>
impl<'a> Unpin for Dimension<'a>
impl<'a> UnwindSafe for Dimension<'a>
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