[][src]Enum pango::Alignment

#[non_exhaustive]pub enum Alignment {
    Left,
    Center,
    Right,
    // some variants omitted
}

A Alignment describes how to align the lines of a Layout within the available space. If the Layout is set to justify using Layout::set_justify, this only has effect for partial lines.

Variants (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.
Left

Put all available space on the right

Center

Center the line within the available space

Right

Put all available space on the left

Trait Implementations

impl Clone for Alignment[src]

impl Copy for Alignment[src]

impl Debug for Alignment[src]

impl Display for Alignment[src]

impl Eq for Alignment[src]

impl<'a> FromValue<'a> for Alignment[src]

impl<'a> FromValueOptional<'a> for Alignment[src]

impl Hash for Alignment[src]

impl Ord for Alignment[src]

impl PartialEq<Alignment> for Alignment[src]

impl PartialOrd<Alignment> for Alignment[src]

impl SetValue for Alignment[src]

impl StaticType for Alignment[src]

impl StructuralEq for Alignment[src]

impl StructuralPartialEq for Alignment[src]

Auto Trait Implementations

impl RefUnwindSafe for Alignment

impl Send for Alignment

impl Sync for Alignment

impl Unpin for Alignment

impl UnwindSafe for Alignment

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> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized

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.