pub struct RemoteName(/* private fields */);
Expand description
Borrowed remote name.
Use .as_str()
or .as_symbol()
for displaying. Other than that, this can
be considered an immutable str
.
Implementations§
Trait Implementations§
Source§impl AsRef<RemoteName> for RemoteName
impl AsRef<RemoteName> for RemoteName
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<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<RemoteName> for String
impl AsRef<RemoteName> for String
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<RemoteName> for str
impl AsRef<RemoteName> for str
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 RemoteName
impl AsRef<str> for RemoteName
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 ContentHash for RemoteName
impl ContentHash for RemoteName
Source§impl Debug for RemoteName
impl Debug for RemoteName
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<&RemoteName> for String
impl From<&RemoteName> for String
Source§fn from(value: &RemoteName) -> Self
fn from(value: &RemoteName) -> Self
Converts to this type from the input type.
Source§impl Hash for RemoteName
impl Hash for RemoteName
Source§impl Ord for RemoteName
impl Ord for RemoteName
Source§impl PartialEq<&RemoteName> for RemoteNameBuf
impl PartialEq<&RemoteName> for RemoteNameBuf
Source§impl PartialEq<&RemoteName> for String
impl PartialEq<&RemoteName> for String
Source§impl PartialEq<&RemoteName> for str
impl PartialEq<&RemoteName> for str
Source§impl PartialEq<&str> for RemoteName
impl PartialEq<&str> for RemoteName
Source§impl PartialEq<RemoteName> for &str
impl PartialEq<RemoteName> for &str
Source§impl PartialEq<RemoteName> for RemoteNameBuf
impl PartialEq<RemoteName> for RemoteNameBuf
Source§impl PartialEq<RemoteName> for String
impl PartialEq<RemoteName> for String
Source§impl PartialEq<RemoteName> for str
impl PartialEq<RemoteName> for str
Source§impl PartialEq<RemoteNameBuf> for &RemoteName
impl PartialEq<RemoteNameBuf> for &RemoteName
Source§impl PartialEq<RemoteNameBuf> for RemoteName
impl PartialEq<RemoteNameBuf> for RemoteName
Source§impl PartialEq<String> for &RemoteName
impl PartialEq<String> for &RemoteName
Source§impl PartialEq<String> for RemoteName
impl PartialEq<String> for RemoteName
Source§impl PartialEq<str> for &RemoteName
impl PartialEq<str> for &RemoteName
Source§impl PartialEq<str> for RemoteName
impl PartialEq<str> for RemoteName
Source§impl PartialEq for RemoteName
impl PartialEq for RemoteName
Source§impl PartialOrd for RemoteName
impl PartialOrd for RemoteName
Source§impl ToOwned for RemoteName
impl ToOwned for RemoteName
Source§type Owned = RemoteNameBuf
type Owned = RemoteNameBuf
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 RemoteName
impl StructuralPartialEq for RemoteName
Auto Trait Implementations§
impl Freeze for RemoteName
impl RefUnwindSafe for RemoteName
impl Send for RemoteName
impl !Sized for RemoteName
impl Sync for RemoteName
impl Unpin for RemoteName
impl UnwindSafe for RemoteName
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.