pub struct RemoteNameBuf(/* private fields */);
Expand description
Owned remote name.
Use .as_str()
or .as_symbol()
for displaying. Other than that, this can
be considered an immutable String
.
Implementations§
Source§impl RemoteNameBuf
impl RemoteNameBuf
Sourcepub fn into_string(self) -> String
pub fn into_string(self) -> String
Consumes this and returns the underlying string.
Methods from Deref<Target = RemoteName>§
Trait Implementations§
Source§impl AsRef<RemoteName> for RemoteNameBuf
impl AsRef<RemoteName> for RemoteNameBuf
Source§fn as_ref(&self) -> &RemoteName
fn as_ref(&self) -> &RemoteName
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<str> for RemoteNameBuf
impl AsRef<str> for RemoteNameBuf
Source§impl Borrow<RemoteName> for RemoteNameBuf
impl Borrow<RemoteName> for RemoteNameBuf
Source§fn borrow(&self) -> &RemoteName
fn borrow(&self) -> &RemoteName
Immutably borrows from an owned value. Read more
Source§impl Clone for RemoteNameBuf
impl Clone for RemoteNameBuf
Source§fn clone(&self) -> RemoteNameBuf
fn clone(&self) -> RemoteNameBuf
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl ContentHash for RemoteNameBuf
impl ContentHash for RemoteNameBuf
Source§impl Debug for RemoteNameBuf
impl Debug for RemoteNameBuf
Source§impl Deref for RemoteNameBuf
impl Deref for RemoteNameBuf
Source§impl From<&RemoteName> for RemoteNameBuf
impl From<&RemoteName> for RemoteNameBuf
Source§fn from(value: &RemoteName) -> Self
fn from(value: &RemoteName) -> Self
Converts to this type from the input type.
Source§impl From<&RemoteNameBuf> for RemoteNameBuf
impl From<&RemoteNameBuf> for RemoteNameBuf
Source§fn from(value: &RemoteNameBuf) -> Self
fn from(value: &RemoteNameBuf) -> Self
Converts to this type from the input type.
Source§impl From<&RemoteNameBuf> for String
impl From<&RemoteNameBuf> for String
Source§fn from(value: &RemoteNameBuf) -> Self
fn from(value: &RemoteNameBuf) -> Self
Converts to this type from the input type.
Source§impl From<&String> for RemoteNameBuf
impl From<&String> for RemoteNameBuf
Source§impl From<&str> for RemoteNameBuf
impl From<&str> for RemoteNameBuf
Source§impl From<RemoteNameBuf> for String
impl From<RemoteNameBuf> for String
Source§fn from(value: RemoteNameBuf) -> Self
fn from(value: RemoteNameBuf) -> Self
Converts to this type from the input type.
Source§impl From<String> for RemoteNameBuf
impl From<String> for RemoteNameBuf
Source§impl Hash for RemoteNameBuf
impl Hash for RemoteNameBuf
Source§impl Ord for RemoteNameBuf
impl Ord for RemoteNameBuf
Source§fn cmp(&self, other: &RemoteNameBuf) -> Ordering
fn cmp(&self, other: &RemoteNameBuf) -> 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<&RemoteName> for RemoteNameBuf
impl PartialEq<&RemoteName> for RemoteNameBuf
Source§impl PartialEq<&str> for RemoteNameBuf
impl PartialEq<&str> for RemoteNameBuf
Source§impl PartialEq<RemoteName> for RemoteNameBuf
impl PartialEq<RemoteName> for RemoteNameBuf
Source§impl PartialEq<RemoteNameBuf> for &RemoteName
impl PartialEq<RemoteNameBuf> for &RemoteName
Source§impl PartialEq<RemoteNameBuf> for &str
impl PartialEq<RemoteNameBuf> for &str
Source§impl PartialEq<RemoteNameBuf> for RemoteName
impl PartialEq<RemoteNameBuf> for RemoteName
Source§impl PartialEq<RemoteNameBuf> for String
impl PartialEq<RemoteNameBuf> for String
Source§impl PartialEq<RemoteNameBuf> for str
impl PartialEq<RemoteNameBuf> for str
Source§impl PartialEq<String> for RemoteNameBuf
impl PartialEq<String> for RemoteNameBuf
Source§impl PartialEq<str> for RemoteNameBuf
impl PartialEq<str> for RemoteNameBuf
Source§impl PartialEq for RemoteNameBuf
impl PartialEq for RemoteNameBuf
Source§impl PartialOrd for RemoteNameBuf
impl PartialOrd for RemoteNameBuf
impl Eq for RemoteNameBuf
impl StructuralPartialEq for RemoteNameBuf
Auto Trait Implementations§
impl Freeze for RemoteNameBuf
impl RefUnwindSafe for RemoteNameBuf
impl Send for RemoteNameBuf
impl Sync for RemoteNameBuf
impl Unpin for RemoteNameBuf
impl UnwindSafe for RemoteNameBuf
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