pub enum GridAutoFlow {
Row,
Column,
RowDense,
ColumnDense,
}Expand description
Controls whether grid items are placed row-wise or column-wise. And whether the sparse or dense packing algorithm is used.
The “dense” packing algorithm attempts to fill in holes earlier in the grid, if smaller items come up later. This may cause items to appear out-of-order, when doing so would fill in holes left by larger items.
Defaults to GridAutoFlow::Row
Variants§
Row
Items are placed by filling each row in turn, adding new rows as necessary
Column
Items are placed by filling each column in turn, adding new columns as necessary.
RowDense
Combines Row with the dense packing algorithm.
ColumnDense
Combines Column with the dense packing algorithm.
Implementations§
Source§impl GridAutoFlow
impl GridAutoFlow
Sourcepub fn is_dense(&self) -> bool
pub fn is_dense(&self) -> bool
Whether grid auto placement uses the sparse placement algorithm or the dense placement algorithm See: https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-flow#values
Sourcepub fn primary_axis(&self) -> AbsoluteAxis
pub fn primary_axis(&self) -> AbsoluteAxis
Whether grid auto placement fills areas row-wise or column-wise See: https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-flow#values
Trait Implementations§
Source§impl Clone for GridAutoFlow
impl Clone for GridAutoFlow
Source§fn clone(&self) -> GridAutoFlow
fn clone(&self) -> GridAutoFlow
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GridAutoFlow
impl Debug for GridAutoFlow
Source§impl Default for GridAutoFlow
impl Default for GridAutoFlow
Source§fn default() -> GridAutoFlow
fn default() -> GridAutoFlow
Source§impl PartialEq for GridAutoFlow
impl PartialEq for GridAutoFlow
impl Copy for GridAutoFlow
impl Eq for GridAutoFlow
impl StructuralPartialEq for GridAutoFlow
Auto Trait Implementations§
impl Freeze for GridAutoFlow
impl RefUnwindSafe for GridAutoFlow
impl Send for GridAutoFlow
impl Sync for GridAutoFlow
impl Unpin for GridAutoFlow
impl UnwindSafe for GridAutoFlow
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.