#[non_exhaustive]pub enum AlignAxis {
XAxis,
YAxis,
Both,
}
Expand description
Specifies the axis on which AlignConstraint
should maintain
the alignment.
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.
XAxis
Maintain the alignment on the X axis
YAxis
Maintain the alignment on the Y axis
Both
Maintain the alignment on both the X and Y axis
Trait Implementations§
Source§impl<'a> FromValue<'a> for AlignAxis
impl<'a> FromValue<'a> for AlignAxis
Source§unsafe fn from_value(value: &Value) -> Self
unsafe fn from_value(value: &Value) -> Self
Safety Read more
Source§impl<'a> FromValueOptional<'a> for AlignAxis
impl<'a> FromValueOptional<'a> for AlignAxis
Source§impl Ord for AlignAxis
impl Ord for AlignAxis
Source§impl PartialOrd for AlignAxis
impl PartialOrd for AlignAxis
Source§impl StaticType for AlignAxis
impl StaticType for AlignAxis
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Copy for AlignAxis
impl Eq for AlignAxis
impl StructuralPartialEq for AlignAxis
Auto Trait Implementations§
impl Freeze for AlignAxis
impl RefUnwindSafe for AlignAxis
impl Send for AlignAxis
impl Sync for AlignAxis
impl Unpin for AlignAxis
impl UnwindSafe for AlignAxis
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
.