pub enum Size {
Px(f32),
Hug,
Fill,
}Expand description
How a node’s width or height is set.
Variants§
Px(f32)
A fixed size, in pixels.
Hug
As large as the node’s content.
Fill
The room its parent’s auto layout gives it: the free space along the layout, the whole breadth across it. A root, with no parent, hugs.
Trait Implementations§
impl Copy for Size
impl StructuralPartialEq for Size
Auto Trait Implementations§
impl Forget for Size
impl Freeze for Size
impl RefUnwindSafe for Size
impl Send for Size
impl Sync for Size
impl Unpin for Size
impl UnsafeUnpin 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