pub enum PrintObject<'a> {
Str(&'a str),
Text(&'a Text),
Renderable(&'a dyn Renderable),
}Expand description
One object passed to Console::print_objects: a string (rendered as
console markup), a Text, or any other renderable.
Variants§
Str(&'a str)
A string, through render_str with the call’s emoji, markup and
highlight.
Text(&'a Text)
A Text, joined with the strings around it.
Renderable(&'a dyn Renderable)
Any other renderable, which stands alone.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for PrintObject<'a>
impl<'a> !Send for PrintObject<'a>
impl<'a> !Sync for PrintObject<'a>
impl<'a> !UnwindSafe for PrintObject<'a>
impl<'a> Freeze for PrintObject<'a>
impl<'a> Unpin for PrintObject<'a>
impl<'a> UnsafeUnpin for PrintObject<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more