pub(crate) enum AutoRepeatStrategy {
MaxRepetitionsThatDoNotOverflow,
MinRepetitionsThatDoOverflow,
}
Expand description
The auto-repeat fit strategy to use
Variants§
MaxRepetitionsThatDoNotOverflow
If the grid container has a definite size or max size in the relevant axis:
- then the number of repetitions is the largest possible positive integer that does not cause the grid to overflow the content box of its grid container.
MinRepetitionsThatDoOverflow
Otherwise, if the grid container has a definite min size in the relevant axis:
- then the number of repetitions is the smallest possible positive integer that fulfills that minimum requirement
Auto Trait Implementations§
impl Freeze for AutoRepeatStrategy
impl RefUnwindSafe for AutoRepeatStrategy
impl Send for AutoRepeatStrategy
impl Sync for AutoRepeatStrategy
impl Unpin for AutoRepeatStrategy
impl UnwindSafe for AutoRepeatStrategy
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