pub struct Formatter<'w, W>{ /* private fields */ }
Expand description
Configuration for formatting
Implementations§
source§impl<'w, W> Formatter<'w, W>
impl<'w, W> Formatter<'w, W>
sourcepub fn debug_list(&mut self) -> Result<DebugList<'_, 'w, W>, W::Error>
pub fn debug_list(&mut self) -> Result<DebugList<'_, 'w, W>, W::Error>
Creates a DebugList
builder designed to assist with creation of uDebug
implementations
for list-like structures.
sourcepub fn debug_map(&mut self) -> Result<DebugMap<'_, 'w, W>, W::Error>
pub fn debug_map(&mut self) -> Result<DebugMap<'_, 'w, W>, W::Error>
Creates a DebugMap
builder designed to assist with creation of uDebug
implementations
for map-like structures.
sourcepub fn debug_set(&mut self) -> Result<DebugSet<'_, 'w, W>, W::Error>
pub fn debug_set(&mut self) -> Result<DebugSet<'_, 'w, W>, W::Error>
Creates a DebugSet
builder designed to assist with creation of uDebug
implementations
for set-like structures.
sourcepub fn debug_struct(
&mut self,
name: &str
) -> Result<DebugStruct<'_, 'w, W>, W::Error>
pub fn debug_struct( &mut self, name: &str ) -> Result<DebugStruct<'_, 'w, W>, W::Error>
Creates a DebugStruct
builder designed to assist with creation of uDebug
implementations
for structs.
sourcepub fn debug_tuple(
&mut self,
name: &str
) -> Result<DebugTuple<'_, 'w, W>, W::Error>
pub fn debug_tuple( &mut self, name: &str ) -> Result<DebugTuple<'_, 'w, W>, W::Error>
Creates a DebugTuple
builder designed to assist with creation of uDebug
implementations
for tuple structs.
source§impl<'w, W> Formatter<'w, W>
impl<'w, W> Formatter<'w, W>
Auto Trait Implementations§
impl<'w, W: ?Sized> Freeze for Formatter<'w, W>
impl<'w, W: ?Sized> RefUnwindSafe for Formatter<'w, W>where
W: RefUnwindSafe,
impl<'w, W: ?Sized> Send for Formatter<'w, W>where
W: Send,
impl<'w, W: ?Sized> Sync for Formatter<'w, W>where
W: Sync,
impl<'w, W: ?Sized> Unpin for Formatter<'w, W>
impl<'w, W> !UnwindSafe for Formatter<'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