Struct twitch_types::points::PollIdRef
source · pub struct PollIdRef(/* private fields */);
Available on crate feature
points
only.Expand description
A poll ID
Implementations§
source§impl PollIdRef
impl PollIdRef
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 PollIdRef
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 PollIdRef
sourcepub fn into_owned(self: Box<PollIdRef>) -> PollId
pub fn into_owned(self: Box<PollIdRef>) -> PollId
Converts a Box<PollIdRef>
into a PollId
without copying or allocating
Trait Implementations§
source§impl<'a> Arbitrary<'a> for &'a PollIdRef
Available on crate feature arbitrary
only.
impl<'a> Arbitrary<'a> for &'a PollIdRef
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<'de: 'a, 'a> Deserialize<'de> for &'a PollIdRef
Available on crate feature serde
only.
impl<'de: 'a, 'a> Deserialize<'de> for &'a PollIdRef
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<PollIdRef>
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for Box<PollIdRef>
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 PartialEq<&PollIdRef> for PollId
impl PartialEq<&PollIdRef> for PollId
source§impl PartialEq<PollId> for &PollIdRef
impl PartialEq<PollId> for &PollIdRef
source§impl PartialEq<PollId> for PollIdRef
impl PartialEq<PollId> for PollIdRef
source§impl PartialEq<PollIdRef> for PollId
impl PartialEq<PollIdRef> for PollId
source§impl PartialEq for PollIdRef
impl PartialEq for PollIdRef
source§impl PartialOrd for PollIdRef
impl PartialOrd for PollIdRef
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 ToOwned for PollIdRef
impl ToOwned for PollIdRef
source§impl<'zf> ZeroFrom<'zf, PollIdRef> for &'zf PollIdRef
Available on crate feature zerofrom
only.
impl<'zf> ZeroFrom<'zf, PollIdRef> for &'zf PollIdRef
Available on crate feature
zerofrom
only.