pub fn new(writer: Writer<'a>, is_empty: bool) -> Self {
        Self {
            writer,
            is_empty,
            style: Style::default(),
            result: Ok(()),
        }
    }
/// Returns a new default visitor that formats to the provided `writer`.
///
/// # Arguments
/// - `writer`: the writer to format to.
/// - `is_empty`: whether or not any fields have been previously written to
///   that writer.
Returns a new default visitor that formats to the provided `writer`.
Returns a new default visitor that formats to the provided ` writer ` .
pub fn new(writer: Writer<'a>, is_empty: bool) -> Self {
        Self {
            writer,
            is_empty,
            style: Style::default(),
            result: Ok(()),
        }
    }
pub fn new ( writer : Writer < ' a > , is_empty : bool ) -> Self { Self { writer , is_empty , style : Style :: default ( ) , result : Ok ( ( ) ) , } }
Returns a new default visitor that formats to the provided `writer`.
Returns a new default visitor that formats to the provided ` writer ` .
writer
Writer<'a>
the writer to format to.
the writer to format to .
is_empty
bool
whether or not any fields have been previously written to
that writer.
whether or not any fields have been previously written to that writer .