pub enum TrackSize {
Fixed(f32),
Auto,
Fr(f32),
MinContent,
MaxContent,
MinMax(Box<TrackSize>, Box<TrackSize>),
}Expand description
One track in a grid template - CSS Grid L1 subset.
Authored values lower to taffy’s MinMax<MinTrackSizingFunction, MaxTrackSizingFunction> at the layout boundary. The recursive
Self::MinMax arm boxes its inner pair so the enum’s size stays
bounded.
Variants§
Fixed(f32)
Fixed length in logical pixels (<N>px).
Auto
CSS auto - sized by intrinsic content.
Fr(f32)
Flex factor (<N>fr) - proportional share of free space.
MinContent
min-content - narrowest non-overflowing size.
MaxContent
max-content - widest fitting all content on one line.
MinMax(Box<TrackSize>, Box<TrackSize>)
minmax(min, max) - independent min / max sizing functions.
Trait Implementations§
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 UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> FromTemplate for T
impl<T> FromTemplate for T
§impl<T> FromWorld for Twhere
T: Default,
impl<T> FromWorld for Twhere
T: Default,
§fn from_world(_world: &mut World) -> T
fn from_world(_world: &mut World) -> T
Creates Self using default().
§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.
§impl<T> Template for T
impl<T> Template for T
§fn build_template(
&self,
_context: &mut TemplateContext<'_, '_>,
) -> Result<<T as Template>::Output, BevyError>
fn build_template( &self, _context: &mut TemplateContext<'_, '_>, ) -> Result<<T as Template>::Output, BevyError>
Uses this template and the given
entity context to produce a Template::Output.§fn clone_template(&self) -> T
fn clone_template(&self) -> T
Clones this template. See
Clone.