pub fn push_section(
        &mut self,
        section_name: impl Into<Cow<'event, str>>,
        subsection_name: impl Into<Option<Cow<'event, str>>>,
        section: SectionBody<'event>,
    ) -> MutableSection<'_, 'event> {
        let subsection_name = subsection_name.into();
        if subsection_name.is_some() {
            self.push_section_internal(
                ParsedSectionHeader {
                    name: SectionHeaderName(section_name.into()),
                    separator: Some(" ".into()),
                    subsection_name,
                },
                section,
            )
        } else {
            self.push_section_internal(
                ParsedSectionHeader {
                    name: SectionHeaderName(section_name.into()),
                    separator: None,
                    subsection_name: None,
                },
                section,
            )
        }
    }
/// Adds the provided section to the config, returning a mutable reference
/// to it.
Adds the provided section to the config, returning a mutable reference
to it.
Adds the provided section to the config returning a mutable reference to it .
pub fn push_section(
        &mut self,
        section_name: impl Into<Cow<'event, str>>,
        subsection_name: impl Into<Option<Cow<'event, str>>>,
        section: SectionBody<'event>,
    ) -> MutableSection<'_, 'event> {
        let subsection_name = subsection_name.into();
        if subsection_name.is_some() {
            self.push_section_internal(
                ParsedSectionHeader {
                    name: SectionHeaderName(section_name.into()),
                    separator: Some(" ".into()),
                    subsection_name,
                },
                section,
            )
        } else {
            self.push_section_internal(
                ParsedSectionHeader {
                    name: SectionHeaderName(section_name.into()),
                    separator: None,
                    subsection_name: None,
                },
                section,
            )
        }
    }
pub fn push_section ( & mut self , section_name : impl Into < Cow < ' event , str > > , subsection_name : impl Into < Option < Cow < ' event , str > > > , section : SectionBody < ' event > , ) -> MutableSection < ' _ , ' event > { let subsection_name = subsection_name . into ( ) ; if subsection_name . is_some ( ) { self . push_section_internal ( ParsedSectionHeader { name : SectionHeaderName ( section_name . into ( ) ) , separator : Some ( " " . into ( ) ) , subsection_name , } , section , ) } else { self . push_section_internal ( ParsedSectionHeader { name : SectionHeaderName ( section_name . into ( ) ) , separator : None , subsection_name : None , } , section , ) } }
Adds the provided section to the config, returning a mutable reference
to it.
Adds the provided section to the config returning a mutable reference to it .
&mut self
section_name
impl Into<Cow<'event, str>>
subsection_name
impl Into<Option<Cow<'event, str>>>
section
SectionBody<'event>