Struct xpct::format::InfallibleFormat
source · pub struct InfallibleFormat;
Expand description
A formatter for matchers that never fail.
This formatter doesn’t actually format anything, because it can never be called. It is mostly
useful for matchers like MapMatcher
that can never fail.
Trait Implementations§
source§impl Debug for InfallibleFormat
impl Debug for InfallibleFormat
source§impl Default for InfallibleFormat
impl Default for InfallibleFormat
source§fn default() -> InfallibleFormat
fn default() -> InfallibleFormat
Returns the “default value” for a type. Read more
source§impl Format for InfallibleFormat
impl Format for InfallibleFormat
§type Value = MatchFailure<Infallible, Infallible>
type Value = MatchFailure<Infallible, Infallible>
The value to format.
Auto Trait Implementations§
impl RefUnwindSafe for InfallibleFormat
impl Send for InfallibleFormat
impl Sync for InfallibleFormat
impl Unpin for InfallibleFormat
impl UnwindSafe for InfallibleFormat
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