[−][src]Struct ufmt::DebugMap
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.
Methods
impl<'_, '_, W: ?Sized> DebugMap<'_, '_, W> where
W: uWrite,
[src]
W: uWrite,
pub fn entry(
&mut self,
key: &impl uDebug,
value: &impl uDebug
) -> Result<&mut Self, W::Error>
[src]
&mut self,
key: &impl uDebug,
value: &impl uDebug
) -> Result<&mut Self, W::Error>
Adds a new entry to the map output.
pub fn entries(
&mut self,
entries: impl IntoIterator<Item = (impl uDebug, impl uDebug)>
) -> Result<&mut Self, W::Error>
[src]
&mut self,
entries: impl IntoIterator<Item = (impl uDebug, impl uDebug)>
) -> Result<&mut Self, W::Error>
Adds the contents of an iterator of entries to the map output.
pub fn finish(&mut self) -> Result<(), W::Error>
[src]
Finishes output
Auto Trait Implementations
impl<'f, 'w, W: ?Sized> Unpin for DebugMap<'f, 'w, W> where
'w: 'f,
'w: 'f,
impl<'f, 'w, W: ?Sized> Send for DebugMap<'f, 'w, W> where
W: Send,
W: Send,
impl<'f, 'w, W: ?Sized> Sync for DebugMap<'f, 'w, W> where
W: Sync,
W: Sync,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,