pub struct RepoNameRef(/* private fields */);
Implementations§
Source§impl RepoNameRef
impl RepoNameRef
Sourcepub const fn from_str(raw: &str) -> &Self
pub const fn from_str(raw: &str) -> &Self
Transparently reinterprets the string slice as a strongly-typed RepoNameRef
Sourcepub const fn from_static(raw: &'static str) -> &'static Self
pub const fn from_static(raw: &'static str) -> &'static Self
Transparently reinterprets the static string slice as a strongly-typed RepoNameRef
Sourcepub fn into_owned(self: Box<RepoNameRef>) -> RepoName
pub fn into_owned(self: Box<RepoNameRef>) -> RepoName
Converts a Box<RepoNameRef>
into a RepoName
without copying or allocating
Trait Implementations§
Source§impl AsRef<RepoNameRef> for RepoName
impl AsRef<RepoNameRef> for RepoName
Source§fn as_ref(&self) -> &RepoNameRef
fn as_ref(&self) -> &RepoNameRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<str> for RepoNameRef
impl AsRef<str> for RepoNameRef
Source§impl Borrow<RepoNameRef> for RepoName
impl Borrow<RepoNameRef> for RepoName
Source§fn borrow(&self) -> &RepoNameRef
fn borrow(&self) -> &RepoNameRef
Immutably borrows from an owned value. Read more
Source§impl Borrow<str> for RepoNameRef
impl Borrow<str> for RepoNameRef
Source§impl Debug for RepoNameRef
impl Debug for RepoNameRef
Source§impl<'de: 'a, 'a> Deserialize<'de> for &'a RepoNameRef
impl<'de: 'a, 'a> Deserialize<'de> for &'a RepoNameRef
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'de> Deserialize<'de> for Box<RepoNameRef>
impl<'de> Deserialize<'de> for Box<RepoNameRef>
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for RepoNameRef
impl Display for RepoNameRef
Source§impl<'a, 'b: 'a> From<&'a Cow<'b, RepoNameRef>> for &'a RepoNameRef
impl<'a, 'b: 'a> From<&'a Cow<'b, RepoNameRef>> for &'a RepoNameRef
Source§fn from(r: &'a Cow<'b, RepoNameRef>) -> &'a RepoNameRef
fn from(r: &'a Cow<'b, RepoNameRef>) -> &'a RepoNameRef
Converts to this type from the input type.
Source§impl From<&RepoNameRef> for Arc<RepoNameRef>
impl From<&RepoNameRef> for Arc<RepoNameRef>
Source§fn from(r: &RepoNameRef) -> Self
fn from(r: &RepoNameRef) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a RepoNameRef> for Cow<'a, RepoNameRef>
impl<'a> From<&'a RepoNameRef> for Cow<'a, RepoNameRef>
Source§fn from(r: &'a RepoNameRef) -> Self
fn from(r: &'a RepoNameRef) -> Self
Converts to this type from the input type.
Source§impl From<&RepoNameRef> for Rc<RepoNameRef>
impl From<&RepoNameRef> for Rc<RepoNameRef>
Source§fn from(r: &RepoNameRef) -> Self
fn from(r: &RepoNameRef) -> Self
Converts to this type from the input type.
Source§impl From<&RepoNameRef> for RepoName
impl From<&RepoNameRef> for RepoName
Source§fn from(s: &RepoNameRef) -> Self
fn from(s: &RepoNameRef) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a str> for &'a RepoNameRef
impl<'a> From<&'a str> for &'a RepoNameRef
Source§fn from(s: &'a str) -> &'a RepoNameRef
fn from(s: &'a str) -> &'a RepoNameRef
Converts to this type from the input type.
Source§impl Hash for RepoNameRef
impl Hash for RepoNameRef
Source§impl Ord for RepoNameRef
impl Ord for RepoNameRef
Source§impl PartialEq<&RepoNameRef> for RepoName
impl PartialEq<&RepoNameRef> for RepoName
Source§impl PartialEq<RepoName> for &RepoNameRef
impl PartialEq<RepoName> for &RepoNameRef
Source§impl PartialEq<RepoName> for RepoNameRef
impl PartialEq<RepoName> for RepoNameRef
Source§impl PartialEq<RepoNameRef> for RepoName
impl PartialEq<RepoNameRef> for RepoName
Source§impl PartialEq for RepoNameRef
impl PartialEq for RepoNameRef
Source§impl PartialOrd for RepoNameRef
impl PartialOrd for RepoNameRef
Source§impl Serialize for RepoNameRef
impl Serialize for RepoNameRef
Source§impl ToOwned for RepoNameRef
impl ToOwned for RepoNameRef
impl Eq for RepoNameRef
impl StructuralPartialEq for RepoNameRef
Auto Trait Implementations§
impl Freeze for RepoNameRef
impl RefUnwindSafe for RepoNameRef
impl Send for RepoNameRef
impl !Sized for RepoNameRef
impl Sync for RepoNameRef
impl Unpin for RepoNameRef
impl UnwindSafe for RepoNameRef
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.