Enum HorizontalAlignment
#[repr(i32)]pub enum HorizontalAlignment {
Left = 0,
Right = 1,
Center = 2,
Stretch = 3,
}Expand description
Horizontal alignment options.
Variants§
Implementations§
§impl HorizontalAlignment
impl HorizontalAlignment
pub fn as_str(self) -> &'static str
pub fn convert(num: i32) -> HorizontalAlignment
Trait Implementations§
§impl Clone for HorizontalAlignment
impl Clone for HorizontalAlignment
§fn clone(&self) -> HorizontalAlignment
fn clone(&self) -> HorizontalAlignment
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 more§impl Debug for HorizontalAlignment
impl Debug for HorizontalAlignment
§impl Display for HorizontalAlignment
impl Display for HorizontalAlignment
§impl PartialEq for HorizontalAlignment
impl PartialEq for HorizontalAlignment
§impl VariantConstraint for HorizontalAlignment
impl VariantConstraint for HorizontalAlignment
§type DataArg<'a> = HorizontalAlignment
type DataArg<'a> = HorizontalAlignment
Specifies the type of an argument that provides a value to
Variant.
Generally, this type matches Self, except for KanziString, Resource, and ResourceId. Read more§type RetArg = HorizontalAlignment
type RetArg = HorizontalAlignment
§fn as_arg(&self) -> <HorizontalAlignment as VariantConstraint>::DataArg<'_>
fn as_arg(&self) -> <HorizontalAlignment as VariantConstraint>::DataArg<'_>
impl Copy for HorizontalAlignment
impl Eq for HorizontalAlignment
impl PropertyTypeConstraint for HorizontalAlignment
impl StructuralPartialEq for HorizontalAlignment
Auto Trait Implementations§
impl Freeze for HorizontalAlignment
impl RefUnwindSafe for HorizontalAlignment
impl Send for HorizontalAlignment
impl Sync for HorizontalAlignment
impl Unpin for HorizontalAlignment
impl UnwindSafe for HorizontalAlignment
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