#[repr(i32)]pub enum GridUnitType {
Auto = 0,
Pixel = 1,
Star = 2,
}Expand description
Defines the valid units for a GridLength.
Variants§
Auto = 0
The row or column is auto-sized to fit its content.
Pixel = 1
The row or column is sized in device independent pixels.
Star = 2
The row or column is sized as a weighted proportion of available space.
Trait Implementations§
Source§impl Clone for GridUnitType
impl Clone for GridUnitType
impl Copy for GridUnitType
Source§impl Debug for GridUnitType
impl Debug for GridUnitType
Source§impl Default for GridUnitType
impl Default for GridUnitType
impl Eq for GridUnitType
Source§impl Hash for GridUnitType
impl Hash for GridUnitType
Source§impl MarkupTyped for GridUnitType
impl MarkupTyped for GridUnitType
Source§const MARKUP: &'static MarkupType
const MARKUP: &'static MarkupType
The markup metadata of the type.
Source§impl PartialEq for GridUnitType
impl PartialEq for GridUnitType
impl StructuralPartialEq for GridUnitType
Auto Trait Implementations§
impl Freeze for GridUnitType
impl RefUnwindSafe for GridUnitType
impl Send for GridUnitType
impl Sync for GridUnitType
impl Unpin for GridUnitType
impl UnsafeUnpin for GridUnitType
impl UnwindSafe for GridUnitType
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more