pub struct LogFormatter { /* private fields */ }
Expand description
Implementations§
Source§impl LogFormatter
impl LogFormatter
pub fn new<StrRef: AsRef<str>>(total_width: usize, ident: StrRef) -> Self
pub fn caption<S: AsRef<str>>(&self, caption: S) -> String
pub fn value_line<S: AsRef<str>, T: Display>( &self, label: S, value: T, ) -> String
pub fn line<S: AsRef<str>>(&self, line: S) -> String
pub fn line_start<S: AsRef<str>>(&self, label: S) -> String
pub fn line_end<S: AsRef<str>>(&self, label: S) -> String
pub fn underline(&self) -> String
Auto Trait Implementations§
impl Freeze for LogFormatter
impl RefUnwindSafe for LogFormatter
impl Send for LogFormatter
impl Sync for LogFormatter
impl Unpin for LogFormatter
impl UnwindSafe for LogFormatter
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