pub enum LogObject<'a> {
Str(&'a str),
Text(&'a Text),
Renderable(Arc<dyn Renderable + Send + Sync>),
}Expand description
One object passed to Console::log: a string (rendered as console
markup), a Text, or any other renderable. A log keeps its renderables
in the message column of a table, so they are shared rather than
borrowed.
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(Arc<dyn Renderable + Send + Sync>)
Any other renderable, which stands alone.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for LogObject<'a>
impl<'a> !UnwindSafe for LogObject<'a>
impl<'a> Freeze for LogObject<'a>
impl<'a> Send for LogObject<'a>
impl<'a> Sync for LogObject<'a>
impl<'a> Unpin for LogObject<'a>
impl<'a> UnsafeUnpin for LogObject<'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