pub struct BadgeSetId(/* private fields */);
Available on crate feature
emote
only.Expand description
A Badge set ID
Implementations§
Source§impl BadgeSetId
impl BadgeSetId
Sourcepub fn from_static(raw: &'static str) -> Self
pub fn from_static(raw: &'static str) -> Self
Constructs a newBadgeSetIdfrom a static reference
Sourcepub fn into_boxed_ref(self) -> Box<BadgeSetIdRef>
pub fn into_boxed_ref(self) -> Box<BadgeSetIdRef>
Converts this BadgeSetId
into a Box<BadgeSetIdRef>
This will drop any excess capacity.
Methods from Deref<Target = 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 BadgeSetId
impl AsRef<str> for BadgeSetId
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 BadgeSetId
impl Borrow<str> for BadgeSetId
Source§impl Clone for BadgeSetId
impl Clone for BadgeSetId
Source§fn clone(&self) -> BadgeSetId
fn clone(&self) -> BadgeSetId
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BadgeSetId
impl Debug for BadgeSetId
Source§impl Deref for BadgeSetId
impl Deref for BadgeSetId
Source§impl<'de> Deserialize<'de> for BadgeSetId
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for BadgeSetId
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 BadgeSetId
impl Display for BadgeSetId
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<'a> From<&'a BadgeSetId> for Collection<'a, BadgeSetId>
impl<'a> From<&'a BadgeSetId> for Collection<'a, BadgeSetId>
Source§fn from(v: &'a BadgeSetId) -> Self
fn from(v: &'a BadgeSetId) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a BadgeSetId> for Cow<'a, BadgeSetIdRef>
impl<'a> From<&'a BadgeSetId> for Cow<'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 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 From<&str> for BadgeSetId
impl From<&str> for BadgeSetId
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<'a> From<BadgeSetId> for Cow<'a, BadgeSetIdRef>
impl<'a> From<BadgeSetId> for Cow<'a, BadgeSetIdRef>
Source§fn from(owned: BadgeSetId) -> Self
fn from(owned: BadgeSetId) -> Self
Converts to this type from the input type.
Source§impl From<BadgeSetId> for String
impl From<BadgeSetId> for String
Source§fn from(s: BadgeSetId) -> Self
fn from(s: BadgeSetId) -> Self
Converts to this type from the input type.
Source§impl From<Box<BadgeSetIdRef>> for BadgeSetId
impl From<Box<BadgeSetIdRef>> for BadgeSetId
Source§fn from(r: Box<BadgeSetIdRef>) -> Self
fn from(r: Box<BadgeSetIdRef>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<Cow<'a, BadgeSetIdRef>> for BadgeSetId
impl<'a> From<Cow<'a, BadgeSetIdRef>> for BadgeSetId
Source§fn from(r: Cow<'a, BadgeSetIdRef>) -> Self
fn from(r: Cow<'a, BadgeSetIdRef>) -> Self
Converts to this type from the input type.
Source§impl From<String> for BadgeSetId
impl From<String> for BadgeSetId
Source§impl FromStr for BadgeSetId
impl FromStr for BadgeSetId
Source§impl Hash for BadgeSetId
impl Hash for BadgeSetId
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 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 BadgeSetId
impl Ord for BadgeSetId
Source§impl PartialEq<&BadgeSetId> for BadgeSetId
impl PartialEq<&BadgeSetId> for BadgeSetId
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 BadgeSetId
impl PartialEq for BadgeSetId
Source§impl PartialOrd for BadgeSetId
impl PartialOrd for BadgeSetId
Source§impl Serialize for BadgeSetId
Available on crate feature serde
only.
impl Serialize for BadgeSetId
Available on crate feature
serde
only.impl Eq for BadgeSetId
impl StructuralPartialEq for BadgeSetId
Auto Trait Implementations§
impl Freeze for BadgeSetId
impl RefUnwindSafe for BadgeSetId
impl Send for BadgeSetId
impl Sync for BadgeSetId
impl Unpin for BadgeSetId
impl UnwindSafe for BadgeSetId
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)