Struct enum_debug::EnumDebugFormatter
source · pub struct EnumDebugFormatter<'a, T: ?Sized> { /* private fields */ }
Expand description
Implements a formatter that can write the variant name of an enum.
The Debug
-formatter writes the enum name and its current variant name, as given by the EnumDebug
trait.
The Display
-formatter just writes its name.
This formatter is returned by EnumDebug::variant()
.
§Examples
See EnumDebug
for some examples.
Trait Implementations§
source§impl<'a, T: EnumDebug> Debug for EnumDebugFormatter<'a, T>
impl<'a, T: EnumDebug> Debug for EnumDebugFormatter<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for EnumDebugFormatter<'a, T>where
T: ?Sized,
impl<'a, T> RefUnwindSafe for EnumDebugFormatter<'a, T>where
T: RefUnwindSafe + ?Sized,
impl<'a, T> Send for EnumDebugFormatter<'a, T>
impl<'a, T> Sync for EnumDebugFormatter<'a, T>
impl<'a, T> Unpin for EnumDebugFormatter<'a, T>where
T: ?Sized,
impl<'a, T> UnwindSafe for EnumDebugFormatter<'a, T>where
T: RefUnwindSafe + ?Sized,
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