pub enum GridLength {
Auto,
Stretch(f64),
Length(f64),
}Expand description
The width or height of a grid cell.
Variants§
Auto
The length is determined automatically.
Stretch(f64)
Represents a relative ratio.
Length(f64)
Fixed length.
Trait Implementations§
Source§impl Clone for GridLength
impl Clone for GridLength
Source§fn clone(&self) -> GridLength
fn clone(&self) -> GridLength
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 GridLength
impl Debug for GridLength
Source§impl From<&GridLength> for TrackSizingFunction
impl From<&GridLength> for TrackSizingFunction
Source§fn from(value: &GridLength) -> Self
fn from(value: &GridLength) -> Self
Converts to this type from the input type.
Source§impl From<GridLength> for TrackSizingFunction
impl From<GridLength> for TrackSizingFunction
Source§fn from(value: GridLength) -> Self
fn from(value: GridLength) -> Self
Converts to this type from the input type.
Source§impl FromStr for GridLength
impl FromStr for GridLength
Source§impl PartialEq for GridLength
impl PartialEq for GridLength
impl Copy for GridLength
impl StructuralPartialEq for GridLength
Auto Trait Implementations§
impl Freeze for GridLength
impl RefUnwindSafe for GridLength
impl Send for GridLength
impl Sync for GridLength
impl Unpin for GridLength
impl UnwindSafe for GridLength
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