pub struct GFMFormatter;Expand description
This formatter outputs Github Flavored Markdown
Trait Implementations§
Source§impl Formatter for GFMFormatter
impl Formatter for GFMFormatter
Source§fn start(
&mut self,
buffer: &mut String,
top_comments: &IndexMap<FlexStr, FlexStr>,
tables: &[&FlexStr],
)
fn start( &mut self, buffer: &mut String, top_comments: &IndexMap<FlexStr, FlexStr>, tables: &[&FlexStr], )
Called first at the start of output. Passed top level
top_comments and a slice of table
names (typically used to build a table of contents)Source§fn start_table(
&mut self,
buffer: &mut String,
name: &FlexStr,
comment: Option<&FlexStr>,
columns: &[ColumnInfo],
)
fn start_table( &mut self, buffer: &mut String, name: &FlexStr, comment: Option<&FlexStr>, columns: &[ColumnInfo], )
Called before each table is output with the
name of the table, a table comment, if any,
and column maximum display width dataSource§fn start_row(&mut self, buffer: &mut String, name: &FlexStr, max_width: usize)
fn start_row(&mut self, buffer: &mut String, name: &FlexStr, max_width: usize)
Called at the start of each new row with the row
name and the max_width of the row name
columnSource§fn used_column(
&mut self,
buffer: &mut String,
time: TimeUnit,
compare: Comparison,
max_width: usize,
)
fn used_column( &mut self, buffer: &mut String, time: TimeUnit, compare: Comparison, max_width: usize, )
Called for each column that is populated with the
time measurement, a comparison to baseline,
and the maximum display width of the columnSource§fn unused_column(&mut self, buffer: &mut String, max_width: usize)
fn unused_column(&mut self, buffer: &mut String, max_width: usize)
Called for each column that is blank with the maximum display width of the the column
Auto Trait Implementations§
impl Freeze for GFMFormatter
impl RefUnwindSafe for GFMFormatter
impl Send for GFMFormatter
impl Sync for GFMFormatter
impl Unpin for GFMFormatter
impl UnwindSafe for GFMFormatter
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