pub struct WriteFormatter<'a> { /* private fields */ }
Implementations§
Source§impl<'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> Freeze for WriteFormatter<'a>
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§
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