Struct cs_utils::WriteFormatter
source · [−]pub struct WriteFormatter<'a> { /* private fields */ }Implementations
sourceimpl<'a> WriteFormatter<'a>
impl<'a> WriteFormatter<'a>
pub fn new<StrRef: AsRef<str>, W: Write + 'static>(
total_width: usize,
ident: StrRef,
writer: W
) -> Self
pub fn new_from_fmt<StrRef: AsRef<str>, R: Write + 'a>(
total_width: usize,
ident: StrRef,
formatter: &'a mut R
) -> Self
pub fn caption<S: AsRef<str>>(&mut self, caption: S) -> &Self
pub fn value_line<S: AsRef<str>, T: Display>(
&mut self,
label: S,
value: T
) -> &Self
pub fn line<S: AsRef<str>>(&mut self, line_str: S) -> &Self
pub fn underline(&mut self) -> &Self
pub fn line_start<S: AsRef<str>>(&mut self, label: S) -> &Self
pub fn line_end<S: AsRef<str>>(&mut self, label: S) -> &Self
Auto Trait Implementations
impl<'a> !RefUnwindSafe for WriteFormatter<'a>
impl<'a> !Send for WriteFormatter<'a>
impl<'a> !Sync for WriteFormatter<'a>
impl<'a> Unpin for WriteFormatter<'a>
impl<'a> !UnwindSafe for WriteFormatter<'a>
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