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