pub struct DebugMap<'f, 'w, W>{ /* private fields */ }
Expand description
A struct to help with uDebug
implementations.
This is useful when you wish to output a formatted map as a part of your uDebug::fmt
implementation.
This can be constructed by the Formatter::debug_map
method.
Implementations§
source§impl<W> DebugMap<'_, '_, W>
impl<W> DebugMap<'_, '_, W>
sourcepub fn entry(
&mut self,
key: &impl uDebug,
value: &impl uDebug
) -> Result<&mut Self, W::Error>
pub fn entry( &mut self, key: &impl uDebug, value: &impl uDebug ) -> Result<&mut Self, W::Error>
Adds a new entry to the map output.
Auto Trait Implementations§
impl<'f, 'w, W: ?Sized> Freeze for DebugMap<'f, 'w, W>
impl<'f, 'w, W: ?Sized> RefUnwindSafe for DebugMap<'f, 'w, W>where
W: RefUnwindSafe,
impl<'f, 'w, W: ?Sized> Send for DebugMap<'f, 'w, W>where
W: Send,
impl<'f, 'w, W: ?Sized> Sync for DebugMap<'f, 'w, W>where
W: Sync,
impl<'f, 'w, W: ?Sized> Unpin for DebugMap<'f, 'w, W>
impl<'f, 'w, W> !UnwindSafe for DebugMap<'f, 'w, W>
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