#[non_exhaustive]pub enum BoxAlignment {
Start,
End,
Center,
}
Expand description
The alignment policies available on each axis of the BoxLayout
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.
Start
Align the child to the top or to to the left, depending on the used axis
End
Align the child to the bottom or to the right, depending on the used axis
Center
Align the child to the center
Trait Implementations§
Source§impl Clone for BoxAlignment
impl Clone for BoxAlignment
Source§fn clone(&self) -> BoxAlignment
fn clone(&self) -> BoxAlignment
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BoxAlignment
impl Debug for BoxAlignment
Source§impl Display for BoxAlignment
impl Display for BoxAlignment
Source§impl<'a> FromValue<'a> for BoxAlignment
impl<'a> FromValue<'a> for BoxAlignment
Source§unsafe fn from_value(value: &Value) -> Self
unsafe fn from_value(value: &Value) -> Self
Safety Read more
Source§impl<'a> FromValueOptional<'a> for BoxAlignment
impl<'a> FromValueOptional<'a> for BoxAlignment
Source§impl Hash for BoxAlignment
impl Hash for BoxAlignment
Source§impl Ord for BoxAlignment
impl Ord for BoxAlignment
Source§fn cmp(&self, other: &BoxAlignment) -> Ordering
fn cmp(&self, other: &BoxAlignment) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for BoxAlignment
impl PartialEq for BoxAlignment
Source§impl PartialOrd for BoxAlignment
impl PartialOrd for BoxAlignment
Source§impl SetValue for BoxAlignment
impl SetValue for BoxAlignment
Source§impl StaticType for BoxAlignment
impl StaticType for BoxAlignment
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Copy for BoxAlignment
impl Eq for BoxAlignment
impl StructuralPartialEq for BoxAlignment
Auto Trait Implementations§
impl Freeze for BoxAlignment
impl RefUnwindSafe for BoxAlignment
impl Send for BoxAlignment
impl Sync for BoxAlignment
impl Unpin for BoxAlignment
impl UnwindSafe for BoxAlignment
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.