pub enum Alignment {
TopStart,
TopCenter,
TopEnd,
CenterStart,
Center,
CenterEnd,
BottomStart,
BottomCenter,
BottomEnd,
}Expand description
Content alignment for a container, applied as the flexbox cross-axis
(align_items) and main-axis (justify_content) pair. Mirrors Compose’s
Alignment for Box(contentAlignment = ...).
Variants§
Implementations§
Source§impl Alignment
impl Alignment
Sourcepub fn to_flex(self) -> (AlignItems, JustifyContent)
pub fn to_flex(self) -> (AlignItems, JustifyContent)
The corresponding (align_items, justify_content) pair for flexbox layout.
Trait Implementations§
impl Copy for Alignment
impl Eq for Alignment
impl StructuralPartialEq for Alignment
Auto Trait Implementations§
impl Freeze for Alignment
impl RefUnwindSafe for Alignment
impl Send for Alignment
impl Sync for Alignment
impl Unpin for Alignment
impl UnsafeUnpin for Alignment
impl UnwindSafe for Alignment
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