[][src]Struct ornament::TextFragment

pub struct TextFragment<F> {
    pub text: String,
    pub face: F,
}

A piece of a decorated text.

Fields

text: String

The raw text.

face: F

The associated face.

Trait Implementations

impl<F: Clone> Clone for TextFragment<F>[src]

impl<F: Debug> Debug for TextFragment<F>[src]

impl<F: Default, '_> From<&'_ str> for TextFragment<F>[src]

impl<F: Default> From<String> for TextFragment<F>[src]

impl<F> From<TextFragment<F>> for Text<F>[src]

impl<F: PartialEq> PartialEq<TextFragment<F>> for TextFragment<F>[src]

impl<F> StructuralPartialEq for TextFragment<F>[src]

Auto Trait Implementations

impl<F> RefUnwindSafe for TextFragment<F> where
    F: RefUnwindSafe

impl<F> Send for TextFragment<F> where
    F: Send

impl<F> Sync for TextFragment<F> where
    F: Sync

impl<F> Unpin for TextFragment<F> where
    F: Unpin

impl<F> UnwindSafe for TextFragment<F> where
    F: UnwindSafe

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.