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