pub struct Logger { /* private fields */ }
Implementations§
Source§impl Logger
impl Logger
pub fn new(options: &LoggerOptions) -> Self
pub fn log(&self, text: &str, context_name: &str)
pub fn log_machine_readable(&self, text: &str)
pub fn log_err(&self, text: &str, context_name: &str)
pub fn log_text_items( &self, text_items: &[LoggerTextItem], context_name: &str, terminal_width: Option<u16>, )
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Logger
impl !RefUnwindSafe for Logger
impl Send for Logger
impl Sync for Logger
impl Unpin for Logger
impl !UnwindSafe for Logger
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