Struct core::fmt::builders::DebugTuple
[−]
[src]
#[must_use] pub struct DebugTuple<'a, 'b> { fmt: &'a mut Formatter<'b>, result: Result, has_fields: bool, }
A struct to help with fmt::Debug
implementations.
Constructed by the Formatter::debug_tuple
method.
Fields
fmt | |
result | |
has_fields |
Methods
impl<'a, 'b> DebugTuple<'a, 'b>
fn field(&mut self, value: &Debug) -> &mut DebugTuple<'a, 'b>
Adds a new field to the generated tuple struct output.
fn finish(&mut self) -> Result
Finishes output and returns any error encountered.
fn is_pretty(&self) -> bool
fn formatter(&mut self) -> &mut Formatter<'b>
Deprecated since 1.7.0
: will be removed
Returns the wrapped Formatter
.