pub struct PlainFormatter { /* private fields */ }
Expand description
Formatter that outputs plain text format
Implementations§
Trait Implementations§
Source§impl Default for PlainFormatter
impl Default for PlainFormatter
Source§impl DigestFormatter for PlainFormatter
impl DigestFormatter for PlainFormatter
Source§fn render_header(&mut self, _data: &DigestData<'_>) -> Result<()>
fn render_header(&mut self, _data: &DigestData<'_>) -> Result<()>
Render the document header
Source§fn render_statistics(&mut self, data: &DigestData<'_>) -> Result<()>
fn render_statistics(&mut self, data: &DigestData<'_>) -> Result<()>
Render statistics section
Source§fn render_file_tree(&mut self, _data: &DigestData<'_>) -> Result<()>
fn render_file_tree(&mut self, _data: &DigestData<'_>) -> Result<()>
Render file tree structure
Source§fn render_toc(&mut self, _data: &DigestData<'_>) -> Result<()>
fn render_toc(&mut self, _data: &DigestData<'_>) -> Result<()>
Render table of contents
Source§fn render_file_details(
&mut self,
file: &FileInfo,
data: &DigestData<'_>,
) -> Result<()>
fn render_file_details( &mut self, file: &FileInfo, data: &DigestData<'_>, ) -> Result<()>
Render details for a single file
Source§fn format_name(&self) -> &'static str
fn format_name(&self) -> &'static str
Get the format name (for testing)
Auto Trait Implementations§
impl Freeze for PlainFormatter
impl RefUnwindSafe for PlainFormatter
impl Send for PlainFormatter
impl Sync for PlainFormatter
impl Unpin for PlainFormatter
impl UnwindSafe for PlainFormatter
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more