[][src]Struct ufmt::DebugMap

pub struct DebugMap<'f, 'w, W: ?Sized> where
    W: uWrite
{ /* fields omitted */ }

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]

pub fn entry(
    &mut self,
    key: &impl uDebug,
    value: &impl uDebug
) -> Result<&mut Self, W::Error>
[src]

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]

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, 

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

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]