pub struct GitRefNameBuf(/* private fields */);
Expand description
Owned 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 String
.
Implementations§
Source§impl GitRefNameBuf
impl GitRefNameBuf
Sourcepub fn into_string(self) -> String
pub fn into_string(self) -> String
Consumes this and returns the underlying string.
Methods from Deref<Target = GitRefName>§
Trait Implementations§
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<str> for GitRefNameBuf
impl AsRef<str> for GitRefNameBuf
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 Clone for GitRefNameBuf
impl Clone for GitRefNameBuf
Source§fn clone(&self) -> GitRefNameBuf
fn clone(&self) -> GitRefNameBuf
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl ContentHash for GitRefNameBuf
impl ContentHash for GitRefNameBuf
Source§impl Debug for GitRefNameBuf
impl Debug for GitRefNameBuf
Source§impl Deref for GitRefNameBuf
impl Deref for GitRefNameBuf
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<&GitRefNameBuf> for GitRefNameBuf
impl From<&GitRefNameBuf> for GitRefNameBuf
Source§fn from(value: &GitRefNameBuf) -> Self
fn from(value: &GitRefNameBuf) -> Self
Converts to this type from the input type.
Source§impl From<&GitRefNameBuf> for String
impl From<&GitRefNameBuf> for String
Source§fn from(value: &GitRefNameBuf) -> Self
fn from(value: &GitRefNameBuf) -> Self
Converts to this type from the input type.
Source§impl From<&String> for GitRefNameBuf
impl From<&String> for GitRefNameBuf
Source§impl From<&str> for GitRefNameBuf
impl From<&str> for GitRefNameBuf
Source§impl From<GitRefNameBuf> for String
impl From<GitRefNameBuf> for String
Source§fn from(value: GitRefNameBuf) -> Self
fn from(value: GitRefNameBuf) -> Self
Converts to this type from the input type.
Source§impl From<String> for GitRefNameBuf
impl From<String> for GitRefNameBuf
Source§impl Hash for GitRefNameBuf
impl Hash for GitRefNameBuf
Source§impl Ord for GitRefNameBuf
impl Ord for GitRefNameBuf
Source§fn cmp(&self, other: &GitRefNameBuf) -> Ordering
fn cmp(&self, other: &GitRefNameBuf) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq<&GitRefName> for GitRefNameBuf
impl PartialEq<&GitRefName> for GitRefNameBuf
Source§impl PartialEq<&str> for GitRefNameBuf
impl PartialEq<&str> for GitRefNameBuf
Source§impl PartialEq<GitRefName> for GitRefNameBuf
impl PartialEq<GitRefName> for GitRefNameBuf
Source§impl PartialEq<GitRefNameBuf> for &GitRefName
impl PartialEq<GitRefNameBuf> for &GitRefName
Source§impl PartialEq<GitRefNameBuf> for &str
impl PartialEq<GitRefNameBuf> for &str
Source§impl PartialEq<GitRefNameBuf> for GitRefName
impl PartialEq<GitRefNameBuf> for GitRefName
Source§impl PartialEq<GitRefNameBuf> for String
impl PartialEq<GitRefNameBuf> for String
Source§impl PartialEq<GitRefNameBuf> for str
impl PartialEq<GitRefNameBuf> for str
Source§impl PartialEq<String> for GitRefNameBuf
impl PartialEq<String> for GitRefNameBuf
Source§impl PartialEq<str> for GitRefNameBuf
impl PartialEq<str> for GitRefNameBuf
Source§impl PartialEq for GitRefNameBuf
impl PartialEq for GitRefNameBuf
Source§impl PartialOrd for GitRefNameBuf
impl PartialOrd for GitRefNameBuf
impl Eq for GitRefNameBuf
impl StructuralPartialEq for GitRefNameBuf
Auto Trait Implementations§
impl Freeze for GitRefNameBuf
impl RefUnwindSafe for GitRefNameBuf
impl Send for GitRefNameBuf
impl Sync for GitRefNameBuf
impl Unpin for GitRefNameBuf
impl UnwindSafe for GitRefNameBuf
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more