Struct git_config::parser::ParsedComment [−][src]
Expand description
A parsed comment event containing the comment marker and comment.
Fields
comment_tag: char
The comment marker used. This is either a semicolon or octothorpe.
comment: Cow<'a, [u8]>
The parsed comment.
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
Performs the conversion.
Performs the conversion.
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 ParsedComment<'a>
impl<'a> Send for ParsedComment<'a>
impl<'a> Sync for ParsedComment<'a>
impl<'a> Unpin for ParsedComment<'a>
impl<'a> UnwindSafe for ParsedComment<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more