Type Alias taffy::style::GridPlacement
source · pub type GridPlacement = GenericGridPlacement<GridLine>;
Expand description
A grid line placement specification. Used for grid-[row/column]-[start/end]. Named tracks are not implemented.
Defaults to GridPlacement::Auto
Aliased Type§
enum GridPlacement {}
Variants§
Implementations§
source§impl GridPlacement
impl GridPlacement
sourcepub fn into_origin_zero_placement(
self,
explicit_track_count: u16,
) -> GenericGridPlacement<OriginZeroLine>
pub fn into_origin_zero_placement( self, explicit_track_count: u16, ) -> GenericGridPlacement<OriginZeroLine>
Apply a mapping function if the [GridPlacement
] is a Track
. Otherwise return self
unmodified.
Trait Implementations§
source§impl Default for GridPlacement
impl Default for GridPlacement
source§impl TaffyAuto for GridPlacement
impl TaffyAuto for GridPlacement
source§impl TaffyGridLine for GridPlacement
impl TaffyGridLine for GridPlacement
source§fn from_line_index(index: i16) -> Self
fn from_line_index(index: i16) -> Self
Converts an i16 into Self