pub enum Sizing {
AspectRatio(f32),
EvenlyDistribute(Length),
}Expand description
The sizing strategy of a Grid.
Variants§
AspectRatio(f32)
The Grid will ensure each cell follows the given aspect ratio and the
total size will be the sum of the cells and the spacing between them.
The ratio is the amount of horizontal pixels per each vertical pixel of a cell
in the Grid.
EvenlyDistribute(Length)
Trait Implementations§
impl Copy for Sizing
impl StructuralPartialEq for Sizing
Auto Trait Implementations§
impl Freeze for Sizing
impl RefUnwindSafe for Sizing
impl Send for Sizing
impl Sync for Sizing
impl Unpin for Sizing
impl UnsafeUnpin for Sizing
impl UnwindSafe for Sizing
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