Struct git_config::parser::SectionHeaderName [−][src]
Expand description
Wrapper struct for section header names, since section headers are case-insensitive.
Tuple Fields
0: Cow<'a, str>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 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 SectionHeaderName<'a>
impl<'a> Send for SectionHeaderName<'a>
impl<'a> Sync for SectionHeaderName<'a>
impl<'a> Unpin for SectionHeaderName<'a>
impl<'a> UnwindSafe for SectionHeaderName<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more