Struct crossterm::styledobject::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]
impl<'a, D: Display + 'a> DisplayableObject<'a, D>
pub fn new(
screen: &'a Screen,
styled_object: StyledObject<D>
) -> DisplayableObject<'a, D>
[src]
pub fn new(
screen: &'a Screen,
styled_object: StyledObject<D>
) -> DisplayableObject<'a, D>
Trait Implementations
impl<'a, D: Display + 'a> Display for DisplayableObject<'a, D>
[src]
impl<'a, D: Display + 'a> Display for DisplayableObject<'a, D>
Auto Trait Implementations
impl<'a, D> Send for DisplayableObject<'a, D> where
D: Send,
impl<'a, D> Send for DisplayableObject<'a, D> where
D: Send,
impl<'a, D> Sync for DisplayableObject<'a, D> where
D: Sync,
impl<'a, D> Sync for DisplayableObject<'a, D> where
D: Sync,