pub enum Align {
Start,
Center,
End,
}Expand description
Cross-axis alignment within a container.
Controls how children are positioned along the axis perpendicular to the
container’s main axis. For a row(), this is vertical alignment; for a
col(), this is horizontal alignment.
Variants§
Start
Align children to the start of the cross axis (default).
Center
Center children on the cross axis.
End
Align children to the end of the cross axis.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Align
impl<'de> Deserialize<'de> for Align
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Align
impl Eq for Align
impl StructuralPartialEq for Align
Auto Trait Implementations§
impl Freeze for Align
impl RefUnwindSafe for Align
impl Send for Align
impl Sync for Align
impl Unpin for Align
impl UnsafeUnpin for Align
impl UnwindSafe for Align
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