#[repr(u8)]pub enum SizingType {
Fit = 0,
Grow = 1,
Percent = 2,
Fixed = 3,
}
Expand description
Defines different sizing behaviors for an element.
Variants§
Fit = 0
The element’s size is determined by its content and constrained by min/max values.
Grow = 1
The element expands to fill available space within min/max constraints.
Percent = 2
The element’s size is fixed to a percentage of its parent.
Fixed = 3
The element’s size is set to a fixed value.
Trait Implementations§
Source§impl Clone for SizingType
impl Clone for SizingType
Source§fn clone(&self) -> SizingType
fn clone(&self) -> SizingType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SizingType
impl Debug for SizingType
impl Copy for SizingType
Auto Trait Implementations§
impl Freeze for SizingType
impl RefUnwindSafe for SizingType
impl Send for SizingType
impl Sync for SizingType
impl Unpin for SizingType
impl UnwindSafe for SizingType
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