[][src]Enum pango::EllipsizeMode

#[non_exhaustive]pub enum EllipsizeMode {
    None,
    Start,
    Middle,
    End,
    // some variants omitted
}

The EllipsizeMode type describes what sort of (if any) ellipsization should be applied to a line of text. In the ellipsization process characters are removed from the text in order to make it fit to a given width and replaced with an ellipsis.

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.
None

No ellipsization

Start

Omit characters at the start of the text

Middle

Omit characters in the middle of the text

End

Omit characters at the end of the text

Trait Implementations

impl Clone for EllipsizeMode[src]

impl Copy for EllipsizeMode[src]

impl Debug for EllipsizeMode[src]

impl Display for EllipsizeMode[src]

impl Eq for EllipsizeMode[src]

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

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

impl Hash for EllipsizeMode[src]

impl Ord for EllipsizeMode[src]

impl PartialEq<EllipsizeMode> for EllipsizeMode[src]

impl PartialOrd<EllipsizeMode> for EllipsizeMode[src]

impl SetValue for EllipsizeMode[src]

impl StaticType for EllipsizeMode[src]

impl StructuralEq for EllipsizeMode[src]

impl StructuralPartialEq for EllipsizeMode[src]

Auto Trait Implementations

impl RefUnwindSafe for EllipsizeMode

impl Send for EllipsizeMode

impl Sync for EllipsizeMode

impl Unpin for EllipsizeMode

impl UnwindSafe for EllipsizeMode

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.