Enum fm::OutputFormatter
source · pub enum OutputFormatter {
InputThenSummary,
InputOnly,
SummaryOnly,
}
Expand description
How should an FMatchError format itself? Where:
Input
means the raw text passed to fmt.Summary
is the subset of pattern and text where an error was detected.
For example a summary may look as follows (where ...
means “text above/below was elided”):
Pattern (error at line 5):
...
|2
|3
|4
>> |5
|6
|7
|8
...
Text (error at line 5):
...
|2
|3
|4
>> |6
|7
|8
|9
...
Variants§
InputThenSummary
Input text followed by a summary.
InputOnly
Input text only.
SummaryOnly
Summary only.
Trait Implementations§
source§impl Clone for OutputFormatter
impl Clone for OutputFormatter
source§fn clone(&self) -> OutputFormatter
fn clone(&self) -> OutputFormatter
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for OutputFormatter
impl Debug for OutputFormatter
impl Copy for OutputFormatter
Auto Trait Implementations§
impl Freeze for OutputFormatter
impl RefUnwindSafe for OutputFormatter
impl Send for OutputFormatter
impl Sync for OutputFormatter
impl Unpin for OutputFormatter
impl UnwindSafe for OutputFormatter
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