Struct core::fmt::DebugStructUnstable [-] [+] [src]

#[must_use]
pub struct DebugStruct<'a, 'b> {
    // some fields omitted
}

A struct to help with fmt::Debug implementations.

Constructed by the Formatter::debug_struct method.

Methods

impl<'a, 'b> DebugStruct<'a, 'b>

fn field(self, name: &str, value: &Debug) -> DebugStruct<'a, 'b>

Adds a new field to the generated struct output.

fn finish(self) -> Result

Consumes the DebugStruct, finishing output and returning any error encountered.