#[repr(C)]
pub enum TextHorizontalAlignment {
Left,
Center,
Right,
}Expand description
This enum describes the different types of alignment of text along the horizontal axis.
Variants
Left
The text will be aligned with the left edge of the containing box.
Center
The text will be horizontally centered within the containing box.
Right
The text will be aligned to the right of the containing box.
Trait Implementations
sourceimpl Clone for TextHorizontalAlignment
impl Clone for TextHorizontalAlignment
sourcefn clone(&self) -> TextHorizontalAlignment
fn clone(&self) -> TextHorizontalAlignment
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for TextHorizontalAlignment
impl Debug for TextHorizontalAlignment
sourceimpl Default for TextHorizontalAlignment
impl Default for TextHorizontalAlignment
sourceimpl Display for TextHorizontalAlignment
impl Display for TextHorizontalAlignment
sourceimpl FromStr for TextHorizontalAlignment
impl FromStr for TextHorizontalAlignment
type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing.
sourceimpl Hash for TextHorizontalAlignment
impl Hash for TextHorizontalAlignment
sourceimpl PartialEq<TextHorizontalAlignment> for TextHorizontalAlignment
impl PartialEq<TextHorizontalAlignment> for TextHorizontalAlignment
sourcefn eq(&self, other: &TextHorizontalAlignment) -> bool
fn eq(&self, other: &TextHorizontalAlignment) -> bool
sourceimpl TryFrom<&str> for TextHorizontalAlignment
impl TryFrom<&str> for TextHorizontalAlignment
type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
impl Copy for TextHorizontalAlignment
impl Eq for TextHorizontalAlignment
impl StructuralEq for TextHorizontalAlignment
impl StructuralPartialEq for TextHorizontalAlignment
Auto Trait Implementations
impl RefUnwindSafe for TextHorizontalAlignment
impl Send for TextHorizontalAlignment
impl Sync for TextHorizontalAlignment
impl Unpin for TextHorizontalAlignment
impl UnwindSafe for TextHorizontalAlignment
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> IsDefault for Twhere
T: Default + PartialEq<T> + Copy,
impl<T> IsDefault for Twhere
T: Default + PartialEq<T> + Copy,
sourcefn is_default(&self) -> bool
fn is_default(&self) -> bool
Checks that type has a default value.