#[non_exhaustive]#[repr(u32)]pub enum CrossAxisAlignment {
Stretch = 0,
Start = 1,
End = 2,
Center = 3,
}Expand description
Controls the alignment of individual items along the cross axis of a layout.
Used as the cross-axis-alignment property of HorizontalLayout, VerticalLayout,
and FlexboxLayout.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Stretch = 0
Items are stretched to fill the cross axis.
Start = 1
Items are placed at the start of the cross axis.
End = 2
Items are placed at the end of the cross axis.
Center = 3
Items are centered along the cross axis.
Trait Implementations§
Source§impl Clone for CrossAxisAlignment
impl Clone for CrossAxisAlignment
Source§fn clone(&self) -> CrossAxisAlignment
fn clone(&self) -> CrossAxisAlignment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CrossAxisAlignment
Source§impl Debug for CrossAxisAlignment
impl Debug for CrossAxisAlignment
Source§impl Default for CrossAxisAlignment
impl Default for CrossAxisAlignment
Source§impl Display for CrossAxisAlignment
impl Display for CrossAxisAlignment
impl Eq for CrossAxisAlignment
Source§impl FromStr for CrossAxisAlignment
impl FromStr for CrossAxisAlignment
Source§impl Hash for CrossAxisAlignment
impl Hash for CrossAxisAlignment
Source§impl PartialEq for CrossAxisAlignment
impl PartialEq for CrossAxisAlignment
Source§fn eq(&self, other: &CrossAxisAlignment) -> bool
fn eq(&self, other: &CrossAxisAlignment) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CrossAxisAlignment
Auto Trait Implementations§
impl Freeze for CrossAxisAlignment
impl RefUnwindSafe for CrossAxisAlignment
impl Send for CrossAxisAlignment
impl Sync for CrossAxisAlignment
impl Unpin for CrossAxisAlignment
impl UnsafeUnpin for CrossAxisAlignment
impl UnwindSafe for CrossAxisAlignment
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
impl<T> Brush for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
Converts the given value to a
SharedString.