Struct git_config::parser::ParsedSection [−][src]
pub struct ParsedSection<'a> {
pub section_header: ParsedSectionHeader<'a>,
pub events: Vec<Event<'a>>,
}
Expand description
A parsed section containing the header and the section events.
Fields
section_header: ParsedSectionHeader<'a>
The section name and subsection name, if any.
events: Vec<Event<'a>>
The syntactic events found in this section.
Implementations
Coerces into an owned instance. This differs from the standard clone
implementation as calling clone will not copy the borrowed variant,
while this method will. In other words:
Borrow type | .clone() | to_owned() |
---|---|---|
Borrowed | Borrowed | Owned |
Owned | Owned | Owned |
This can be most effectively seen by the differing lifetimes between the
two. This method guarantees a 'static
lifetime, while clone
does
not.
Trait Implementations
Returns the “default value” for a type. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl<'a> RefUnwindSafe for ParsedSection<'a>
impl<'a> Send for ParsedSection<'a>
impl<'a> Sync for ParsedSection<'a>
impl<'a> Unpin for ParsedSection<'a>
impl<'a> UnwindSafe for ParsedSection<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more