Struct cs_utils::LogFormatter
source · [−]pub struct LogFormatter { /* private fields */ }Expand description
Implementations
sourceimpl 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 RefUnwindSafe for LogFormatter
impl Send for LogFormatter
impl Sync for LogFormatter
impl Unpin for LogFormatter
impl UnwindSafe for LogFormatter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more