Struct dynamodb_book_ch21_github::RepoName
source · #[repr(transparent)]pub struct RepoName(/* private fields */);
Implementations§
source§impl RepoName
impl RepoName
sourcepub const fn new(raw: CompactString) -> Self
pub const fn new(raw: CompactString) -> Self
Constructs a new RepoName
sourcepub fn from_static(raw: &'static str) -> Self
pub fn from_static(raw: &'static str) -> Self
Constructs a new RepoName from a static reference
sourcepub fn into_boxed_ref(self) -> Box<RepoNameRef>
pub fn into_boxed_ref(self) -> Box<RepoNameRef>
Converts this RepoName
into a Box<RepoNameRef>
This will drop any excess capacity.
sourcepub fn take(self) -> CompactString
pub fn take(self) -> CompactString
Unwraps the underlying CompactString
value
Methods from Deref<Target = RepoNameRef>§
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 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<'de> Deserialize<'de> for RepoName
impl<'de> Deserialize<'de> for RepoName
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 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 From<Box<RepoNameRef, Global>> for RepoName
impl From<Box<RepoNameRef, Global>> for RepoName
source§fn from(r: Box<RepoNameRef>) -> Self
fn from(r: Box<RepoNameRef>) -> Self
Converts to this type from the input type.
source§impl<'a> From<Cow<'a, RepoNameRef>> for RepoName
impl<'a> From<Cow<'a, RepoNameRef>> for RepoName
source§fn from(r: Cow<'a, RepoNameRef>) -> Self
fn from(r: Cow<'a, RepoNameRef>) -> Self
Converts to this type from the input type.
source§impl Ord for RepoName
impl Ord for RepoName
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 RepoName
impl PartialEq<RepoName> for RepoName
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 PartialOrd<RepoName> for RepoName
impl PartialOrd<RepoName> for RepoName
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 moreimpl Eq for RepoName
impl StructuralEq for RepoName
impl StructuralPartialEq for RepoName
Auto Trait Implementations§
impl RefUnwindSafe for RepoName
impl Send for RepoName
impl Sync for RepoName
impl Unpin for RepoName
impl UnwindSafe for RepoName
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> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
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<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> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere T: Display,
source§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString
. Read more