Struct twitch_types::stream::HypeTrainId
source · pub struct HypeTrainId(/* private fields */);
Available on crate feature
stream
only.Expand description
A Hype Train ID
Implementations§
source§impl HypeTrainId
impl HypeTrainId
sourcepub fn from_static(raw: &'static str) -> Self
pub fn from_static(raw: &'static str) -> Self
Constructs a newHypeTrainIdfrom a static reference
sourcepub fn into_boxed_ref(self) -> Box<HypeTrainIdRef>
pub fn into_boxed_ref(self) -> Box<HypeTrainIdRef>
Converts this HypeTrainId
into a Box<HypeTrainIdRef>
This will drop any excess capacity.
Methods from Deref<Target = 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 HypeTrainId
Available on crate feature arbitrary
only.
impl<'a> Arbitrary<'a> for HypeTrainId
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 HypeTrainId
impl AsRef<str> for HypeTrainId
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 HypeTrainId
impl Borrow<str> for HypeTrainId
source§impl Clone for HypeTrainId
impl Clone for HypeTrainId
source§fn clone(&self) -> HypeTrainId
fn clone(&self) -> HypeTrainId
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 HypeTrainId
impl Debug for HypeTrainId
source§impl Deref for HypeTrainId
impl Deref for HypeTrainId
source§impl<'de> Deserialize<'de> for HypeTrainId
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for HypeTrainId
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 HypeTrainId
impl Display for HypeTrainId
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<'a> From<&'a HypeTrainId> for Collection<'a, HypeTrainId>
impl<'a> From<&'a HypeTrainId> for Collection<'a, HypeTrainId>
source§fn from(v: &'a HypeTrainId) -> Self
fn from(v: &'a HypeTrainId) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a HypeTrainId> for Cow<'a, HypeTrainIdRef>
impl<'a> From<&'a HypeTrainId> for Cow<'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 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<&str> for HypeTrainId
impl From<&str> for HypeTrainId
source§impl From<Box<HypeTrainIdRef>> for HypeTrainId
impl From<Box<HypeTrainIdRef>> for HypeTrainId
source§fn from(r: Box<HypeTrainIdRef>) -> Self
fn from(r: Box<HypeTrainIdRef>) -> Self
Converts to this type from the input type.
source§impl<'a> From<Cow<'a, HypeTrainIdRef>> for HypeTrainId
impl<'a> From<Cow<'a, HypeTrainIdRef>> for HypeTrainId
source§fn from(r: Cow<'a, HypeTrainIdRef>) -> Self
fn from(r: Cow<'a, HypeTrainIdRef>) -> Self
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<'a> From<HypeTrainId> for Cow<'a, HypeTrainIdRef>
impl<'a> From<HypeTrainId> for Cow<'a, HypeTrainIdRef>
source§fn from(owned: HypeTrainId) -> Self
fn from(owned: HypeTrainId) -> Self
Converts to this type from the input type.
source§impl From<HypeTrainId> for String
impl From<HypeTrainId> for String
source§fn from(s: HypeTrainId) -> Self
fn from(s: HypeTrainId) -> Self
Converts to this type from the input type.
source§impl From<String> for HypeTrainId
impl From<String> for HypeTrainId
source§impl FromStr for HypeTrainId
impl FromStr for HypeTrainId
source§impl Hash for HypeTrainId
impl Hash for HypeTrainId
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 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 HypeTrainId
impl Ord for HypeTrainId
source§impl PartialEq<&HypeTrainId> for HypeTrainId
impl PartialEq<&HypeTrainId> for HypeTrainId
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<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 HypeTrainId
impl PartialEq for HypeTrainId
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 PartialOrd for HypeTrainId
impl PartialOrd for HypeTrainId
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 HypeTrainId
Available on crate feature serde
only.
impl Serialize for HypeTrainId
Available on crate feature
serde
only.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
.impl Eq for HypeTrainId
impl StructuralPartialEq for HypeTrainId
Auto Trait Implementations§
impl Freeze for HypeTrainId
impl RefUnwindSafe for HypeTrainId
impl Send for HypeTrainId
impl Sync for HypeTrainId
impl Unpin for HypeTrainId
impl UnwindSafe for HypeTrainId
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