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>
Sourcepub fn pretty(
&mut self,
f: impl FnOnce(&mut Self) -> Result<(), W::Error>,
) -> Result<(), W::Error>
pub fn pretty( &mut self, f: impl FnOnce(&mut Self) -> Result<(), W::Error>, ) -> Result<(), W::Error>
Execute the closure with pretty-printing enabled
Auto Trait Implementations§
impl<'w, W> Freeze for Formatter<'w, W>where
W: ?Sized,
impl<'w, W> RefUnwindSafe for Formatter<'w, W>where
W: RefUnwindSafe + ?Sized,
impl<'w, W> Send for Formatter<'w, W>
impl<'w, W> Sync for Formatter<'w, W>
impl<'w, W> Unpin for Formatter<'w, W>where
W: ?Sized,
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