pub struct DebugTuple<'a, 'b: 'a> { /* private fields */ }
Expand description
A struct to help with fmt::Debug
implementations.
Implementations§
Source§impl<'a, 'b: 'a> DebugTuple<'a, 'b>
impl<'a, 'b: 'a> DebugTuple<'a, 'b>
Sourcepub fn new(fmt: &'a mut Formatter<'b>, name: &str) -> DebugTuple<'a, 'b>
pub fn new(fmt: &'a mut Formatter<'b>, name: &str) -> DebugTuple<'a, 'b>
Creates a new DebugTuple
.
Sourcepub fn field(self, value: &dyn Debug) -> DebugTuple<'a, 'b>
pub fn field(self, value: &dyn Debug) -> DebugTuple<'a, 'b>
Adds a new field to the generated tuple struct output.
Auto Trait Implementations§
impl<'a, 'b> Freeze for DebugTuple<'a, 'b>
impl<'a, 'b> !RefUnwindSafe for DebugTuple<'a, 'b>
impl<'a, 'b> !Send for DebugTuple<'a, 'b>
impl<'a, 'b> !Sync for DebugTuple<'a, 'b>
impl<'a, 'b> Unpin for DebugTuple<'a, 'b>
impl<'a, 'b> !UnwindSafe for DebugTuple<'a, 'b>
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