pub struct BadgeSetIdRef(/* private fields */);
Available on crate feature
emote
only.Expand description
A Badge set ID
Implementations§
Source§impl BadgeSetIdRef
impl BadgeSetIdRef
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 BadgeSetIdRef
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 BadgeSetIdRef
Sourcepub fn into_owned(self: Box<BadgeSetIdRef>) -> BadgeSetId
pub fn into_owned(self: Box<BadgeSetIdRef>) -> BadgeSetId
Converts a Box<BadgeSetIdRef>
into a BadgeSetId
without copying or allocating
Source§impl BadgeSetIdRef
impl BadgeSetIdRef
Sourcepub fn as_cow(&self) -> Cow<'_, BadgeSetIdRef>
pub fn as_cow(&self) -> Cow<'_, BadgeSetIdRef>
Get a
Cow<'_, BadgeSetIdRef>
Trait Implementations§
Source§impl AsRef<BadgeSetIdRef> for BadgeSetId
impl AsRef<BadgeSetIdRef> for BadgeSetId
Source§fn as_ref(&self) -> &BadgeSetIdRef
fn as_ref(&self) -> &BadgeSetIdRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<str> for BadgeSetIdRef
impl AsRef<str> for BadgeSetIdRef
Source§impl Borrow<BadgeSetIdRef> for BadgeSetId
impl Borrow<BadgeSetIdRef> for BadgeSetId
Source§fn borrow(&self) -> &BadgeSetIdRef
fn borrow(&self) -> &BadgeSetIdRef
Immutably borrows from an owned value. Read more
Source§impl Borrow<str> for BadgeSetIdRef
impl Borrow<str> for BadgeSetIdRef
Source§impl Debug for BadgeSetIdRef
impl Debug for BadgeSetIdRef
Source§impl<'de: 'a, 'a> Deserialize<'de> for &'a BadgeSetIdRef
Available on crate feature serde
only.
impl<'de: 'a, 'a> Deserialize<'de> for &'a BadgeSetIdRef
Available on crate feature
serde
only.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<BadgeSetIdRef>
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for Box<BadgeSetIdRef>
Available on crate feature
serde
only.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 BadgeSetIdRef
impl Display for BadgeSetIdRef
Source§impl<'a> From<&'a &'a BadgeSetIdRef> for Collection<'a, BadgeSetId>
impl<'a> From<&'a &'a BadgeSetIdRef> for Collection<'a, BadgeSetId>
Source§fn from(v: &'a &'a BadgeSetIdRef) -> Self
fn from(v: &'a &'a BadgeSetIdRef) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a BadgeSetId> for &'a BadgeSetIdRef
impl<'a> From<&'a BadgeSetId> for &'a BadgeSetIdRef
Source§fn from(owned: &'a BadgeSetId) -> Self
fn from(owned: &'a BadgeSetId) -> Self
Converts to this type from the input type.
Source§impl From<&BadgeSetIdRef> for Arc<BadgeSetIdRef>
impl From<&BadgeSetIdRef> for Arc<BadgeSetIdRef>
Source§fn from(r: &BadgeSetIdRef) -> Self
fn from(r: &BadgeSetIdRef) -> Self
Converts to this type from the input type.
Source§impl From<&BadgeSetIdRef> for BadgeSetId
impl From<&BadgeSetIdRef> for BadgeSetId
Source§fn from(s: &BadgeSetIdRef) -> Self
fn from(s: &BadgeSetIdRef) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a BadgeSetIdRef> for Cow<'a, BadgeSetIdRef>
impl<'a> From<&'a BadgeSetIdRef> for Cow<'a, BadgeSetIdRef>
Source§fn from(r: &'a BadgeSetIdRef) -> Self
fn from(r: &'a BadgeSetIdRef) -> Self
Converts to this type from the input type.
Source§impl From<&BadgeSetIdRef> for Rc<BadgeSetIdRef>
impl From<&BadgeSetIdRef> for Rc<BadgeSetIdRef>
Source§fn from(r: &BadgeSetIdRef) -> Self
fn from(r: &BadgeSetIdRef) -> Self
Converts to this type from the input type.
Source§impl<'a, 'b: 'a> From<&'a Cow<'b, BadgeSetIdRef>> for &'a BadgeSetIdRef
impl<'a, 'b: 'a> From<&'a Cow<'b, BadgeSetIdRef>> for &'a BadgeSetIdRef
Source§fn from(r: &'a Cow<'b, BadgeSetIdRef>) -> &'a BadgeSetIdRef
fn from(r: &'a Cow<'b, BadgeSetIdRef>) -> &'a BadgeSetIdRef
Converts to this type from the input type.
Source§impl<'a> From<&'a String> for &'a BadgeSetIdRef
impl<'a> From<&'a String> for &'a BadgeSetIdRef
Source§impl<'a> From<&'a str> for &'a BadgeSetIdRef
impl<'a> From<&'a str> for &'a BadgeSetIdRef
Source§fn from(s: &'a str) -> &'a BadgeSetIdRef
fn from(s: &'a str) -> &'a BadgeSetIdRef
Converts to this type from the input type.
Source§impl From<BadgeSetId> for Box<BadgeSetIdRef>
impl From<BadgeSetId> for Box<BadgeSetIdRef>
Source§fn from(r: BadgeSetId) -> Self
fn from(r: BadgeSetId) -> Self
Converts to this type from the input type.
Source§impl Hash for BadgeSetIdRef
impl Hash for BadgeSetIdRef
Source§impl<'a> IntoCow<'a, BadgeSetIdRef> for &'a BadgeSetId
impl<'a> IntoCow<'a, BadgeSetIdRef> for &'a BadgeSetId
Source§fn into_cow(self) -> Cow<'a, BadgeSetIdRef>
fn into_cow(self) -> Cow<'a, BadgeSetIdRef>
Make the cow with proper ownership, muu
Source§impl<'a> IntoCow<'a, BadgeSetIdRef> for &'a BadgeSetIdRef
impl<'a> IntoCow<'a, BadgeSetIdRef> for &'a BadgeSetIdRef
Source§fn into_cow(self) -> Cow<'a, BadgeSetIdRef>
fn into_cow(self) -> Cow<'a, BadgeSetIdRef>
Make the cow with proper ownership, muu
Source§impl<'a> IntoCow<'a, BadgeSetIdRef> for BadgeSetId
impl<'a> IntoCow<'a, BadgeSetIdRef> for BadgeSetId
Source§fn into_cow(self) -> Cow<'a, BadgeSetIdRef>
fn into_cow(self) -> Cow<'a, BadgeSetIdRef>
Make the cow with proper ownership, muu
Source§impl Ord for BadgeSetIdRef
impl Ord for BadgeSetIdRef
Source§impl PartialEq<&BadgeSetIdRef> for BadgeSetId
impl PartialEq<&BadgeSetIdRef> for BadgeSetId
Source§impl PartialEq<BadgeSetId> for &BadgeSetIdRef
impl PartialEq<BadgeSetId> for &BadgeSetIdRef
Source§impl PartialEq<BadgeSetId> for BadgeSetIdRef
impl PartialEq<BadgeSetId> for BadgeSetIdRef
Source§impl PartialEq<BadgeSetIdRef> for BadgeSetId
impl PartialEq<BadgeSetIdRef> for BadgeSetId
Source§impl PartialEq for BadgeSetIdRef
impl PartialEq for BadgeSetIdRef
Source§impl PartialOrd for BadgeSetIdRef
impl PartialOrd for BadgeSetIdRef
Source§impl Serialize for BadgeSetIdRef
Available on crate feature serde
only.
impl Serialize for BadgeSetIdRef
Available on crate feature
serde
only.Source§impl ToOwned for BadgeSetIdRef
impl ToOwned for BadgeSetIdRef
Source§type Owned = BadgeSetId
type Owned = BadgeSetId
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