[][src]Enum pango::Underline

#[non_exhaustive]pub enum Underline {
    // some variants omitted

The Underline enumeration is used to specify whether text should be underlined, and if so, the type of underlining.

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.

no underline should be drawn


a single underline should be drawn


a double underline should be drawn


a single underline should be drawn at a position beneath the ink extents of the text being underlined. This should be used only for underlining single characters, such as for keyboard accelerators. Underline::Single should be used for extended portions of text.


a wavy underline should be drawn below. This underline is typically used to indicate an error such as a possible mispelling; in some cases a contrasting color may automatically be used. This type of underlining is available since Pango 1.4.

Trait Implementations

impl Clone for Underline[src]

impl Copy for Underline[src]

impl Debug for Underline[src]

impl Display for Underline[src]

impl Eq for Underline[src]

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

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

impl Hash for Underline[src]

impl Ord for Underline[src]

impl PartialEq<Underline> for Underline[src]

impl PartialOrd<Underline> for Underline[src]

impl SetValue for Underline[src]

impl StaticType for Underline[src]

impl StructuralEq for Underline[src]

impl StructuralPartialEq for Underline[src]

Auto Trait Implementations

impl RefUnwindSafe for Underline

impl Send for Underline

impl Sync for Underline

impl Unpin for Underline

impl UnwindSafe for Underline

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.