Struct xpct::format::FailureFormat
source · #[non_exhaustive]pub struct FailureFormat;
Expand description
A formatter for FormattedFailure
values.
This formatter just writes a pre-formatted value via Formatter::write_fmt
. It’s mostly
useful for combinator matchers which need to print the output of the matchers they compose.
If you need to print multiple FormattedFailure
values, use SomeFailuresFormat
.
Implementations§
source§impl FailureFormat
impl FailureFormat
sourcepub fn new() -> Self
pub fn new() -> Self
Create a new FailureFormat
.
Trait Implementations§
source§impl Debug for FailureFormat
impl Debug for FailureFormat
source§impl Default for FailureFormat
impl Default for FailureFormat
source§fn default() -> FailureFormat
fn default() -> FailureFormat
Returns the “default value” for a type. Read more
source§impl Format for FailureFormat
impl Format for FailureFormat
§type Value = MatchFailure<FormattedFailure, FormattedFailure>
type Value = MatchFailure<FormattedFailure, FormattedFailure>
The value to format.
Auto Trait Implementations§
impl RefUnwindSafe for FailureFormat
impl Send for FailureFormat
impl Sync for FailureFormat
impl Unpin for FailureFormat
impl UnwindSafe for FailureFormat
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