pub struct GitRefName(/* private fields */);
Expand description
Borrowed Git ref name in fully-qualified form (e.g. refs/heads/main
.)
Use .as_str()
or .as_symbol()
for displaying. Other than that, this can
be considered an immutable str
.
Implementations§
Trait Implementations§
Source§impl AsRef<GitRefName> for GitRefName
impl AsRef<GitRefName> for GitRefName
Source§fn as_ref(&self) -> &GitRefName
fn as_ref(&self) -> &GitRefName
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<GitRefName> for GitRefNameBuf
impl AsRef<GitRefName> for GitRefNameBuf
Source§fn as_ref(&self) -> &GitRefName
fn as_ref(&self) -> &GitRefName
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<GitRefName> for String
impl AsRef<GitRefName> for String
Source§fn as_ref(&self) -> &GitRefName
fn as_ref(&self) -> &GitRefName
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<GitRefName> for str
impl AsRef<GitRefName> for str
Source§fn as_ref(&self) -> &GitRefName
fn as_ref(&self) -> &GitRefName
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<str> for GitRefName
impl AsRef<str> for GitRefName
Source§impl Borrow<GitRefName> for GitRefNameBuf
impl Borrow<GitRefName> for GitRefNameBuf
Source§fn borrow(&self) -> &GitRefName
fn borrow(&self) -> &GitRefName
Immutably borrows from an owned value. Read more
Source§impl ContentHash for GitRefName
impl ContentHash for GitRefName
Source§impl Debug for GitRefName
impl Debug for GitRefName
Source§impl From<&GitRefName> for GitRefNameBuf
impl From<&GitRefName> for GitRefNameBuf
Source§fn from(value: &GitRefName) -> Self
fn from(value: &GitRefName) -> Self
Converts to this type from the input type.
Source§impl From<&GitRefName> for String
impl From<&GitRefName> for String
Source§fn from(value: &GitRefName) -> Self
fn from(value: &GitRefName) -> Self
Converts to this type from the input type.
Source§impl Hash for GitRefName
impl Hash for GitRefName
Source§impl Ord for GitRefName
impl Ord for GitRefName
Source§impl PartialEq<&GitRefName> for GitRefNameBuf
impl PartialEq<&GitRefName> for GitRefNameBuf
Source§impl PartialEq<&GitRefName> for String
impl PartialEq<&GitRefName> for String
Source§impl PartialEq<&GitRefName> for str
impl PartialEq<&GitRefName> for str
Source§impl PartialEq<&str> for GitRefName
impl PartialEq<&str> for GitRefName
Source§impl PartialEq<GitRefName> for &str
impl PartialEq<GitRefName> for &str
Source§impl PartialEq<GitRefName> for GitRefNameBuf
impl PartialEq<GitRefName> for GitRefNameBuf
Source§impl PartialEq<GitRefName> for String
impl PartialEq<GitRefName> for String
Source§impl PartialEq<GitRefName> for str
impl PartialEq<GitRefName> for str
Source§impl PartialEq<GitRefNameBuf> for &GitRefName
impl PartialEq<GitRefNameBuf> for &GitRefName
Source§impl PartialEq<GitRefNameBuf> for GitRefName
impl PartialEq<GitRefNameBuf> for GitRefName
Source§impl PartialEq<String> for &GitRefName
impl PartialEq<String> for &GitRefName
Source§impl PartialEq<String> for GitRefName
impl PartialEq<String> for GitRefName
Source§impl PartialEq<str> for &GitRefName
impl PartialEq<str> for &GitRefName
Source§impl PartialEq<str> for GitRefName
impl PartialEq<str> for GitRefName
Source§impl PartialEq for GitRefName
impl PartialEq for GitRefName
Source§impl PartialOrd for GitRefName
impl PartialOrd for GitRefName
Source§impl ToOwned for GitRefName
impl ToOwned for GitRefName
Source§type Owned = GitRefNameBuf
type Owned = GitRefNameBuf
The resulting type after obtaining ownership.
Source§fn to_owned(&self) -> Self::Owned
fn to_owned(&self) -> Self::Owned
Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · Source§fn clone_into(&self, target: &mut Self::Owned)
fn clone_into(&self, target: &mut Self::Owned)
Uses borrowed data to replace owned data, usually by cloning. Read more
impl Eq for GitRefName
impl StructuralPartialEq for GitRefName
Auto Trait Implementations§
impl Freeze for GitRefName
impl RefUnwindSafe for GitRefName
impl Send for GitRefName
impl !Sized for GitRefName
impl Sync for GitRefName
impl Unpin for GitRefName
impl UnwindSafe for GitRefName
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.