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