[−][src]Struct ufmt::DebugStruct
A struct to help with uDebug
implementations.
This is useful when you wish to output a formatted struct as a part of your uDebug::fmt
implementation.
This can be constructed by the Formatter::debug_struct
method.
Methods
impl<'_, '_, W: ?Sized> DebugStruct<'_, '_, W> where
W: uWrite,
[src]
W: uWrite,
pub fn field(
&mut self,
name: &str,
value: &impl uDebug
) -> Result<&mut Self, W::Error>
[src]
&mut self,
name: &str,
value: &impl uDebug
) -> Result<&mut Self, W::Error>
Adds a new field to the generated struct output.
pub fn finish(&mut self) -> Result<(), W::Error>
[src]
Finishes output
Auto Trait Implementations
impl<'f, 'w, W: ?Sized> Unpin for DebugStruct<'f, 'w, W> where
'w: 'f,
'w: 'f,
impl<'f, 'w, W: ?Sized> Send for DebugStruct<'f, 'w, W> where
W: Send,
W: Send,
impl<'f, 'w, W: ?Sized> Sync for DebugStruct<'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,