Struct dynamodb_book_ch21_github::RepoNameRef
source · #[repr(transparent)]pub struct RepoNameRef(_);
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<'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<'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 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 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 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§fn eq(&self, other: &&RepoNameRef) -> bool
fn eq(&self, other: &&RepoNameRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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§fn eq(&self, other: &RepoNameRef) -> bool
fn eq(&self, other: &RepoNameRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<RepoNameRef> for RepoNameRef
impl PartialEq<RepoNameRef> for RepoNameRef
source§fn eq(&self, other: &RepoNameRef) -> bool
fn eq(&self, other: &RepoNameRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<RepoNameRef> for RepoNameRef
impl PartialOrd<RepoNameRef> for RepoNameRef
source§fn partial_cmp(&self, other: &RepoNameRef) -> Option<Ordering>
fn partial_cmp(&self, other: &RepoNameRef) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
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 moresource§impl Serialize for RepoNameRef
impl Serialize for RepoNameRef
source§impl ToOwned for RepoNameRef
impl ToOwned for RepoNameRef
impl Eq for RepoNameRef
impl StructuralEq for RepoNameRef
impl StructuralPartialEq for RepoNameRef
Auto Trait Implementations§
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