Struct crossterm::DisplayableObject[][src]

pub struct DisplayableObject<'a, D: Display + 'a> { /* fields omitted */ }

This is a wrapper for a styled object so that the styled object could be printed with the standard write functions in rust.

write! ("some normal text, {} <- some colored text", DisplayableObject::new(&screen, styled_object));
println! ("some normal text, {} <- some colored text", DisplayableObject::new(&screen, styled_object))

Methods

impl<'a, D: Display + 'a> DisplayableObject<'a, D>
[src]

Trait Implementations

impl<'a, D: Display + 'a> Display for DisplayableObject<'a, D>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<'a, D> Send for DisplayableObject<'a, D> where
    D: Send

impl<'a, D> Sync for DisplayableObject<'a, D> where
    D: Sync