[][src]Enum tui::widgets::Text

pub enum Text<'b> {
    Raw(Cow<'b, str>),
    Styled(Cow<'b, str>, Style),
}

Variants

Raw(Cow<'b, str>)
Styled(Cow<'b, str>, Style)

Implementations

impl<'b> Text<'b>[src]

pub fn raw<D: Into<Cow<'b, str>>>(data: D) -> Text<'b>[src]

pub fn styled<D: Into<Cow<'b, str>>>(data: D, style: Style) -> Text<'b>[src]

Trait Implementations

impl<'b> Clone for Text<'b>[src]

impl<'b> Debug for Text<'b>[src]

impl<'b> PartialEq<Text<'b>> for Text<'b>[src]

impl<'b> StructuralPartialEq for Text<'b>[src]

Auto Trait Implementations

impl<'b> RefUnwindSafe for Text<'b>

impl<'b> Send for Text<'b>

impl<'b> Sync for Text<'b>

impl<'b> Unpin for Text<'b>

impl<'b> UnwindSafe for Text<'b>

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.