pub struct Debug;Expand description
A programmer-friendly repr for debugging purposes.
Often mimics the actual Rust structure of the type.
Can be derived via derive.
Equivalent of core::fmt::Debug.
Implementations§
Source§impl Debug
impl Debug
Sourcepub fn dbg_tuple<'w>(&self, f: &'w mut dyn Write, name: &str) -> DebugTuple<'w>
pub fn dbg_tuple<'w>(&self, f: &'w mut dyn Write, name: &str) -> DebugTuple<'w>
Assists with formatting tuple structs (or tuples, when name is empty).
Sourcepub fn dbg_struct<'w>(
&self,
f: &'w mut dyn Write,
name: &str,
) -> DebugStruct<'w>
pub fn dbg_struct<'w>( &self, f: &'w mut dyn Write, name: &str, ) -> DebugStruct<'w>
Assists with formatting structs (or objects, when name is empty).
Trait Implementations§
impl Copy for Debug
impl Style for Debug
Auto Trait Implementations§
impl Freeze for Debug
impl RefUnwindSafe for Debug
impl Send for Debug
impl Sync for Debug
impl Unpin for Debug
impl UnwindSafe for Debug
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