pub fn push(&mut self, key: Key<'event>, value: Cow<'event, [u8]>) {
        if self.whitespace > 0 {
            self.section
                .0
                .push(Event::Whitespace(" ".repeat(self.whitespace).into()));
        }

        self.section.0.push(Event::Key(key));
        self.section.0.push(Event::KeyValueSeparator);
        self.section.0.push(Event::Value(value));
        if self.implicit_newline {
            self.section.0.push(Event::Newline("\n".into()));
        }
    }
/// Adds an entry to the end of this section.
Adds an entry to the end of this section.
Adds an entry to the end of this section .
pub fn push(&mut self, key: Key<'event>, value: Cow<'event, [u8]>) {
        if self.whitespace > 0 {
            self.section
                .0
                .push(Event::Whitespace(" ".repeat(self.whitespace).into()));
        }
        self.section.0.push(Event::Key(key));
        self.section.0.push(Event::KeyValueSeparator);
        self.section.0.push(Event::Value(value));
        if self.implicit_newline {
            self.section.0.push(Event::Newline("\n".into()));
        }
    }
pub fn push ( & mut self , key : Key < ' event > , value : Cow < ' event , [ u8 ] > ) { if self . whitespace > 0 { self . section . 0 . push ( Event :: Whitespace ( " " . repeat ( self . whitespace ) . into ( ) ) ) ; } self . section . 0 . push ( Event :: Key ( key ) ) ; self . section . 0 . push ( Event :: KeyValueSeparator ) ; self . section . 0 . push ( Event :: Value ( value ) ) ; if self . implicit_newline { self . section . 0 . push ( Event :: Newline ( " \n " . into ( ) ) ) ; } }
Adds an entry to the end of this section.
Adds an entry to the end of this section .
&mut self
key
Key<'event>
value
Cow<'event, [u8]>