Struct twitch_types::emote::EmoteSetIdRef
source · pub struct EmoteSetIdRef(/* private fields */);
Available on crate feature
emote
only.Expand description
An Emote Set ID
Implementations§
source§impl EmoteSetIdRef
impl EmoteSetIdRef
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 EmoteSetIdRef
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 EmoteSetIdRef
sourcepub fn into_owned(self: Box<EmoteSetIdRef>) -> EmoteSetId
pub fn into_owned(self: Box<EmoteSetIdRef>) -> EmoteSetId
Converts a Box<EmoteSetIdRef>
into a EmoteSetId
without copying or allocating
source§impl EmoteSetIdRef
impl EmoteSetIdRef
sourcepub fn as_cow(&self) -> Cow<'_, EmoteSetIdRef>
pub fn as_cow(&self) -> Cow<'_, EmoteSetIdRef>
Get a
Cow<'_, EmoteSetIdRef>
Trait Implementations§
source§impl<'a> Arbitrary<'a> for &'a EmoteSetIdRef
Available on crate feature arbitrary
only.
impl<'a> Arbitrary<'a> for &'a EmoteSetIdRef
Available on crate feature
arbitrary
only.source§fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self, Error>
fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self, Error>
Generate an arbitrary value of
Self
from the given unstructured data. Read moresource§fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moresource§impl AsRef<EmoteSetIdRef> for EmoteSetId
impl AsRef<EmoteSetIdRef> for EmoteSetId
source§fn as_ref(&self) -> &EmoteSetIdRef
fn as_ref(&self) -> &EmoteSetIdRef
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<str> for EmoteSetIdRef
impl AsRef<str> for EmoteSetIdRef
source§impl Borrow<EmoteSetIdRef> for EmoteSetId
impl Borrow<EmoteSetIdRef> for EmoteSetId
source§fn borrow(&self) -> &EmoteSetIdRef
fn borrow(&self) -> &EmoteSetIdRef
Immutably borrows from an owned value. Read more
source§impl Borrow<str> for EmoteSetIdRef
impl Borrow<str> for EmoteSetIdRef
source§impl Debug for EmoteSetIdRef
impl Debug for EmoteSetIdRef
source§impl<'de: 'a, 'a> Deserialize<'de> for &'a EmoteSetIdRef
Available on crate feature serde
only.
impl<'de: 'a, 'a> Deserialize<'de> for &'a EmoteSetIdRef
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<EmoteSetIdRef>
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for Box<EmoteSetIdRef>
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 EmoteSetIdRef
impl Display for EmoteSetIdRef
source§impl<'a> From<&'a &'a EmoteSetIdRef> for Collection<'a, EmoteSetId>
impl<'a> From<&'a &'a EmoteSetIdRef> for Collection<'a, EmoteSetId>
source§fn from(v: &'a &'a EmoteSetIdRef) -> Self
fn from(v: &'a &'a EmoteSetIdRef) -> Self
Converts to this type from the input type.
source§impl<'a, 'b: 'a> From<&'a Cow<'b, EmoteSetIdRef>> for &'a EmoteSetIdRef
impl<'a, 'b: 'a> From<&'a Cow<'b, EmoteSetIdRef>> for &'a EmoteSetIdRef
source§fn from(r: &'a Cow<'b, EmoteSetIdRef>) -> &'a EmoteSetIdRef
fn from(r: &'a Cow<'b, EmoteSetIdRef>) -> &'a EmoteSetIdRef
Converts to this type from the input type.
source§impl<'a> From<&'a EmoteSetId> for &'a EmoteSetIdRef
impl<'a> From<&'a EmoteSetId> for &'a EmoteSetIdRef
source§fn from(owned: &'a EmoteSetId) -> Self
fn from(owned: &'a EmoteSetId) -> Self
Converts to this type from the input type.
source§impl From<&EmoteSetIdRef> for Arc<EmoteSetIdRef>
impl From<&EmoteSetIdRef> for Arc<EmoteSetIdRef>
source§fn from(r: &EmoteSetIdRef) -> Self
fn from(r: &EmoteSetIdRef) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a EmoteSetIdRef> for Cow<'a, EmoteSetIdRef>
impl<'a> From<&'a EmoteSetIdRef> for Cow<'a, EmoteSetIdRef>
source§fn from(r: &'a EmoteSetIdRef) -> Self
fn from(r: &'a EmoteSetIdRef) -> Self
Converts to this type from the input type.
source§impl From<&EmoteSetIdRef> for EmoteSetId
impl From<&EmoteSetIdRef> for EmoteSetId
source§fn from(s: &EmoteSetIdRef) -> Self
fn from(s: &EmoteSetIdRef) -> Self
Converts to this type from the input type.
source§impl From<&EmoteSetIdRef> for Rc<EmoteSetIdRef>
impl From<&EmoteSetIdRef> for Rc<EmoteSetIdRef>
source§fn from(r: &EmoteSetIdRef) -> Self
fn from(r: &EmoteSetIdRef) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a String> for &'a EmoteSetIdRef
impl<'a> From<&'a String> for &'a EmoteSetIdRef
source§impl<'a> From<&'a str> for &'a EmoteSetIdRef
impl<'a> From<&'a str> for &'a EmoteSetIdRef
source§fn from(s: &'a str) -> &'a EmoteSetIdRef
fn from(s: &'a str) -> &'a EmoteSetIdRef
Converts to this type from the input type.
source§impl From<EmoteSetId> for Box<EmoteSetIdRef>
impl From<EmoteSetId> for Box<EmoteSetIdRef>
source§fn from(r: EmoteSetId) -> Self
fn from(r: EmoteSetId) -> Self
Converts to this type from the input type.
source§impl Hash for EmoteSetIdRef
impl Hash for EmoteSetIdRef
source§impl<'a> IntoCow<'a, EmoteSetIdRef> for &'a EmoteSetId
impl<'a> IntoCow<'a, EmoteSetIdRef> for &'a EmoteSetId
source§fn into_cow(self) -> Cow<'a, EmoteSetIdRef>
fn into_cow(self) -> Cow<'a, EmoteSetIdRef>
Make the cow with proper ownership, muu
source§impl<'a> IntoCow<'a, EmoteSetIdRef> for &'a EmoteSetIdRef
impl<'a> IntoCow<'a, EmoteSetIdRef> for &'a EmoteSetIdRef
source§fn into_cow(self) -> Cow<'a, EmoteSetIdRef>
fn into_cow(self) -> Cow<'a, EmoteSetIdRef>
Make the cow with proper ownership, muu
source§impl<'a> IntoCow<'a, EmoteSetIdRef> for EmoteSetId
impl<'a> IntoCow<'a, EmoteSetIdRef> for EmoteSetId
source§fn into_cow(self) -> Cow<'a, EmoteSetIdRef>
fn into_cow(self) -> Cow<'a, EmoteSetIdRef>
Make the cow with proper ownership, muu
source§impl Ord for EmoteSetIdRef
impl Ord for EmoteSetIdRef
source§impl PartialEq<&EmoteSetIdRef> for EmoteSetId
impl PartialEq<&EmoteSetIdRef> for EmoteSetId
source§fn eq(&self, other: &&EmoteSetIdRef) -> bool
fn eq(&self, other: &&EmoteSetIdRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<EmoteSetId> for &EmoteSetIdRef
impl PartialEq<EmoteSetId> for &EmoteSetIdRef
source§fn eq(&self, other: &EmoteSetId) -> bool
fn eq(&self, other: &EmoteSetId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<EmoteSetId> for EmoteSetIdRef
impl PartialEq<EmoteSetId> for EmoteSetIdRef
source§fn eq(&self, other: &EmoteSetId) -> bool
fn eq(&self, other: &EmoteSetId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<EmoteSetIdRef> for EmoteSetId
impl PartialEq<EmoteSetIdRef> for EmoteSetId
source§fn eq(&self, other: &EmoteSetIdRef) -> bool
fn eq(&self, other: &EmoteSetIdRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq for EmoteSetIdRef
impl PartialEq for EmoteSetIdRef
source§fn eq(&self, other: &EmoteSetIdRef) -> bool
fn eq(&self, other: &EmoteSetIdRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for EmoteSetIdRef
impl PartialOrd for EmoteSetIdRef
source§fn partial_cmp(&self, other: &EmoteSetIdRef) -> Option<Ordering>
fn partial_cmp(&self, other: &EmoteSetIdRef) -> 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 EmoteSetIdRef
Available on crate feature serde
only.
impl Serialize for EmoteSetIdRef
Available on crate feature
serde
only.source§impl ToOwned for EmoteSetIdRef
impl ToOwned for EmoteSetIdRef
§type Owned = EmoteSetId
type Owned = EmoteSetId
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
source§impl<'zf> ZeroFrom<'zf, EmoteSetId> for &'zf EmoteSetIdRef
Available on crate feature zerofrom
only.
impl<'zf> ZeroFrom<'zf, EmoteSetId> for &'zf EmoteSetIdRef
Available on crate feature
zerofrom
only.source§fn zero_from(other: &'zf EmoteSetId) -> Self
fn zero_from(other: &'zf EmoteSetId) -> Self
Clone the other
C
into a struct that may retain references into C
.source§impl<'zf> ZeroFrom<'zf, EmoteSetIdRef> for &'zf EmoteSetIdRef
Available on crate feature zerofrom
only.
impl<'zf> ZeroFrom<'zf, EmoteSetIdRef> for &'zf EmoteSetIdRef
Available on crate feature
zerofrom
only.source§fn zero_from(other: &'zf EmoteSetIdRef) -> Self
fn zero_from(other: &'zf EmoteSetIdRef) -> Self
Clone the other
C
into a struct that may retain references into C
.