Struct git_config::parser::Key [−][src]
Expand description
Wrapper struct for key names, since keys 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
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 Key<'a>
impl<'a> UnwindSafe for Key<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more