pub enum Dimension {
Auto,
Length(f32),
Percent(f32),
}Expand description
The dimension of one axis, width or height.
Variants§
Auto
A size decided by the content and the layout.
Length(f32)
A fixed size, in logical pixels.
Percent(f32)
A percentage of the parent’s size (0.0..=1.0).
Trait Implementations§
impl Copy for Dimension
impl StructuralPartialEq for Dimension
Auto Trait Implementations§
impl Freeze for Dimension
impl RefUnwindSafe for Dimension
impl Send for Dimension
impl Sync for Dimension
impl Unpin for Dimension
impl UnsafeUnpin for Dimension
impl UnwindSafe for Dimension
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