[][src]Enum piet::TextAlignment

pub enum TextAlignment {
    Start,
    End,
    Center,
    Justified,
}

The alignment of text in a TextLayout.

Variants

Start

Text is aligned to the left edge in left-to-right scripts, and the right edge in right-to-left scripts.

End

Text is aligned to the right edge in left-to-right scripts, and the left edge in right-to-left scripts.

Center
Justified

Trait Implementations

impl Clone for TextAlignment[src]

impl Copy for TextAlignment[src]

impl Debug for TextAlignment[src]

impl Default for TextAlignment[src]

impl Eq for TextAlignment[src]

impl PartialEq<TextAlignment> for TextAlignment[src]

impl StructuralEq for TextAlignment[src]

impl StructuralPartialEq for TextAlignment[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.