pub enum TrackSize {
Px(f32),
Fr(f32),
Auto,
MinContent,
MaxContent,
}Expand description
A track size specification.
Variants§
Px(f32)
Fixed size in pixels
Fr(f32)
Flexible fraction of remaining space
Auto
Size based on content
MinContent
Minimum content size
MaxContent
Maximum content size
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TrackSize
impl<'de> Deserialize<'de> for TrackSize
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
impl Copy for TrackSize
impl StructuralPartialEq for TrackSize
Auto Trait Implementations§
impl Freeze for TrackSize
impl RefUnwindSafe for TrackSize
impl Send for TrackSize
impl Sync for TrackSize
impl Unpin for TrackSize
impl UnwindSafe for TrackSize
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