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