pub enum GridTrackSize {
Pt(f64),
Fr(f64),
Auto,
MinMax(Box<GridTrackSize>, Box<GridTrackSize>),
}Expand description
A single grid track size definition.
Variants§
Pt(f64)
Fixed size in points.
Fr(f64)
Fractional unit (distributes remaining space proportionally).
Auto
Size determined by content.
MinMax(Box<GridTrackSize>, Box<GridTrackSize>)
Clamped between min and max.
Trait Implementations§
Source§impl Clone for GridTrackSize
impl Clone for GridTrackSize
Source§fn clone(&self) -> GridTrackSize
fn clone(&self) -> GridTrackSize
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 GridTrackSize
impl Debug for GridTrackSize
Source§impl<'de> Deserialize<'de> for GridTrackSize
impl<'de> Deserialize<'de> for GridTrackSize
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GridTrackSize
impl RefUnwindSafe for GridTrackSize
impl Send for GridTrackSize
impl Sync for GridTrackSize
impl Unpin for GridTrackSize
impl UnsafeUnpin for GridTrackSize
impl UnwindSafe for GridTrackSize
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