[][src]Enum pango::Alignment

#[non_exhaustive]pub enum Alignment {
    // 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.

Put all available space on the right


Center the line within the available space


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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

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

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

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.