#[repr(transparent)]
pub struct RepoNameRef(_);

Implementations§

source§

impl RepoNameRef

source

pub const fn from_str(raw: &str) -> &Self

Transparently reinterprets the string slice as a strongly-typed RepoNameRef

source

pub const fn from_static(raw: &'static str) -> &'static Self

Transparently reinterprets the static string slice as a strongly-typed RepoNameRef

source

pub fn into_owned(self: Box<RepoNameRef>) -> RepoName

Converts a Box<RepoNameRef> into a RepoName without copying or allocating

source

pub const fn as_str(&self) -> &str

Provides access to the underlying value as a string slice.

Trait Implementations§

source§

impl AsRef<RepoNameRef> for RepoName

source§

fn as_ref(&self) -> &RepoNameRef

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<str> for RepoNameRef

source§

fn as_ref(&self) -> &str

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Borrow<RepoNameRef> for RepoName

source§

fn borrow(&self) -> &RepoNameRef

Immutably borrows from an owned value. Read more
source§

impl Borrow<str> for RepoNameRef

source§

fn borrow(&self) -> &str

Immutably borrows from an owned value. Read more
source§

impl Debug for RepoNameRef

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de: 'a, 'a> Deserialize<'de> for &'a RepoNameRef

source§

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>

source§

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

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'a, 'b: 'a> From<&'a Cow<'b, RepoNameRef>> for &'a RepoNameRef

source§

fn from(r: &'a Cow<'b, RepoNameRef>) -> &'a RepoNameRef

Converts to this type from the input type.
source§

impl<'a> From<&'a RepoNameRef> for Cow<'a, RepoNameRef>

source§

fn from(r: &'a RepoNameRef) -> Self

Converts to this type from the input type.
source§

impl<'a> From<&'a str> for &'a RepoNameRef

source§

fn from(s: &'a str) -> &'a RepoNameRef

Converts to this type from the input type.
source§

impl From<&RepoNameRef> for Arc<RepoNameRef>

source§

fn from(r: &RepoNameRef) -> Self

Converts to this type from the input type.
source§

impl From<&RepoNameRef> for Rc<RepoNameRef>

source§

fn from(r: &RepoNameRef) -> Self

Converts to this type from the input type.
source§

impl From<&RepoNameRef> for RepoName

source§

fn from(s: &RepoNameRef) -> Self

Converts to this type from the input type.
source§

impl From<RepoName> for Box<RepoNameRef>

source§

fn from(r: RepoName) -> Self

Converts to this type from the input type.
source§

impl Hash for RepoNameRef

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
source§

impl Ord for RepoNameRef

source§

fn cmp(&self, other: &RepoNameRef) -> Ordering

This method returns an Ordering between self and other. Read more
source§

impl PartialEq<&RepoNameRef> for RepoName

source§

fn eq(&self, other: &&RepoNameRef) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<RepoName> for &RepoNameRef

source§

fn eq(&self, other: &RepoName) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<RepoName> for RepoNameRef

source§

fn eq(&self, other: &RepoName) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<RepoNameRef> for RepoName

source§

fn eq(&self, other: &RepoNameRef) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<RepoNameRef> for RepoNameRef

source§

fn eq(&self, other: &RepoNameRef) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd<RepoNameRef> for RepoNameRef

source§

fn partial_cmp(&self, other: &RepoNameRef) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Serialize for RepoNameRef

source§

fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>

Serialize this value into the given Serde serializer. Read more
source§

impl ToOwned for RepoNameRef

§

type Owned = RepoName

The resulting type after obtaining ownership.
source§

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)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl Eq for RepoNameRef

source§

impl StructuralEq for RepoNameRef

source§

impl StructuralPartialEq for RepoNameRef

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more