pub enum Size {
Zero,
Px(u32),
Percent(f32),
Em(f32),
Rem(f32),
Vw(f32),
Vh(f32),
Auto,
Var(CssVar),
}Expand description
Size values for CSS properties
Variants§
Zero
Constants
Px(u32)
Pixel values
Percent(f32)
Percentage values
Em(f32)
Em values (relative to font size)
Rem(f32)
Rem values (relative to root font size)
Vw(f32)
Viewport width percentage
Vh(f32)
Viewport height percentage
Auto
Auto value
Var(CssVar)
CSS variable
Trait Implementations§
impl StructuralPartialEq for Size
Auto Trait Implementations§
impl Freeze for Size
impl RefUnwindSafe for Size
impl Send for Size
impl Sync for Size
impl Unpin for Size
impl UnwindSafe for Size
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