pub struct PollChoiceIdRef(/* private fields */);
Available on crate feature
points
only.Expand description
A poll choice ID
Implementations§
Source§impl PollChoiceIdRef
impl PollChoiceIdRef
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 PollChoiceIdRef
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 PollChoiceIdRef
Sourcepub fn into_owned(self: Box<PollChoiceIdRef>) -> PollChoiceId
pub fn into_owned(self: Box<PollChoiceIdRef>) -> PollChoiceId
Converts a Box<PollChoiceIdRef>
into a PollChoiceId
without copying or allocating
Source§impl PollChoiceIdRef
impl PollChoiceIdRef
Sourcepub fn as_cow(&self) -> Cow<'_, PollChoiceIdRef>
pub fn as_cow(&self) -> Cow<'_, PollChoiceIdRef>
Get a
Cow<'_, PollChoiceIdRef>
Trait Implementations§
Source§impl AsRef<PollChoiceIdRef> for PollChoiceId
impl AsRef<PollChoiceIdRef> for PollChoiceId
Source§fn as_ref(&self) -> &PollChoiceIdRef
fn as_ref(&self) -> &PollChoiceIdRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<str> for PollChoiceIdRef
impl AsRef<str> for PollChoiceIdRef
Source§impl Borrow<PollChoiceIdRef> for PollChoiceId
impl Borrow<PollChoiceIdRef> for PollChoiceId
Source§fn borrow(&self) -> &PollChoiceIdRef
fn borrow(&self) -> &PollChoiceIdRef
Immutably borrows from an owned value. Read more
Source§impl Borrow<str> for PollChoiceIdRef
impl Borrow<str> for PollChoiceIdRef
Source§impl Debug for PollChoiceIdRef
impl Debug for PollChoiceIdRef
Source§impl<'de: 'a, 'a> Deserialize<'de> for &'a PollChoiceIdRef
Available on crate feature serde
only.
impl<'de: 'a, 'a> Deserialize<'de> for &'a PollChoiceIdRef
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<PollChoiceIdRef>
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for Box<PollChoiceIdRef>
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 PollChoiceIdRef
impl Display for PollChoiceIdRef
Source§impl<'a> From<&'a &'a PollChoiceIdRef> for Collection<'a, PollChoiceId>
impl<'a> From<&'a &'a PollChoiceIdRef> for Collection<'a, PollChoiceId>
Source§fn from(v: &'a &'a PollChoiceIdRef) -> Self
fn from(v: &'a &'a PollChoiceIdRef) -> Self
Converts to this type from the input type.
Source§impl<'a, 'b: 'a> From<&'a Cow<'b, PollChoiceIdRef>> for &'a PollChoiceIdRef
impl<'a, 'b: 'a> From<&'a Cow<'b, PollChoiceIdRef>> for &'a PollChoiceIdRef
Source§fn from(r: &'a Cow<'b, PollChoiceIdRef>) -> &'a PollChoiceIdRef
fn from(r: &'a Cow<'b, PollChoiceIdRef>) -> &'a PollChoiceIdRef
Converts to this type from the input type.
Source§impl<'a> From<&'a PollChoiceId> for &'a PollChoiceIdRef
impl<'a> From<&'a PollChoiceId> for &'a PollChoiceIdRef
Source§fn from(owned: &'a PollChoiceId) -> Self
fn from(owned: &'a PollChoiceId) -> Self
Converts to this type from the input type.
Source§impl From<&PollChoiceIdRef> for Arc<PollChoiceIdRef>
impl From<&PollChoiceIdRef> for Arc<PollChoiceIdRef>
Source§fn from(r: &PollChoiceIdRef) -> Self
fn from(r: &PollChoiceIdRef) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a PollChoiceIdRef> for Cow<'a, PollChoiceIdRef>
impl<'a> From<&'a PollChoiceIdRef> for Cow<'a, PollChoiceIdRef>
Source§fn from(r: &'a PollChoiceIdRef) -> Self
fn from(r: &'a PollChoiceIdRef) -> Self
Converts to this type from the input type.
Source§impl From<&PollChoiceIdRef> for PollChoiceId
impl From<&PollChoiceIdRef> for PollChoiceId
Source§fn from(s: &PollChoiceIdRef) -> Self
fn from(s: &PollChoiceIdRef) -> Self
Converts to this type from the input type.
Source§impl From<&PollChoiceIdRef> for Rc<PollChoiceIdRef>
impl From<&PollChoiceIdRef> for Rc<PollChoiceIdRef>
Source§fn from(r: &PollChoiceIdRef) -> Self
fn from(r: &PollChoiceIdRef) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a String> for &'a PollChoiceIdRef
impl<'a> From<&'a String> for &'a PollChoiceIdRef
Source§impl<'a> From<&'a str> for &'a PollChoiceIdRef
impl<'a> From<&'a str> for &'a PollChoiceIdRef
Source§fn from(s: &'a str) -> &'a PollChoiceIdRef
fn from(s: &'a str) -> &'a PollChoiceIdRef
Converts to this type from the input type.
Source§impl From<PollChoiceId> for Box<PollChoiceIdRef>
impl From<PollChoiceId> for Box<PollChoiceIdRef>
Source§fn from(r: PollChoiceId) -> Self
fn from(r: PollChoiceId) -> Self
Converts to this type from the input type.
Source§impl Hash for PollChoiceIdRef
impl Hash for PollChoiceIdRef
Source§impl<'a> IntoCow<'a, PollChoiceIdRef> for &'a PollChoiceId
impl<'a> IntoCow<'a, PollChoiceIdRef> for &'a PollChoiceId
Source§fn into_cow(self) -> Cow<'a, PollChoiceIdRef>
fn into_cow(self) -> Cow<'a, PollChoiceIdRef>
Make the cow with proper ownership, muu
Source§impl<'a> IntoCow<'a, PollChoiceIdRef> for &'a PollChoiceIdRef
impl<'a> IntoCow<'a, PollChoiceIdRef> for &'a PollChoiceIdRef
Source§fn into_cow(self) -> Cow<'a, PollChoiceIdRef>
fn into_cow(self) -> Cow<'a, PollChoiceIdRef>
Make the cow with proper ownership, muu
Source§impl<'a> IntoCow<'a, PollChoiceIdRef> for PollChoiceId
impl<'a> IntoCow<'a, PollChoiceIdRef> for PollChoiceId
Source§fn into_cow(self) -> Cow<'a, PollChoiceIdRef>
fn into_cow(self) -> Cow<'a, PollChoiceIdRef>
Make the cow with proper ownership, muu
Source§impl Ord for PollChoiceIdRef
impl Ord for PollChoiceIdRef
Source§impl PartialEq<&PollChoiceIdRef> for PollChoiceId
impl PartialEq<&PollChoiceIdRef> for PollChoiceId
Source§impl PartialEq<PollChoiceId> for &PollChoiceIdRef
impl PartialEq<PollChoiceId> for &PollChoiceIdRef
Source§impl PartialEq<PollChoiceId> for PollChoiceIdRef
impl PartialEq<PollChoiceId> for PollChoiceIdRef
Source§impl PartialEq<PollChoiceIdRef> for PollChoiceId
impl PartialEq<PollChoiceIdRef> for PollChoiceId
Source§impl PartialEq for PollChoiceIdRef
impl PartialEq for PollChoiceIdRef
Source§impl PartialOrd for PollChoiceIdRef
impl PartialOrd for PollChoiceIdRef
Source§impl Serialize for PollChoiceIdRef
Available on crate feature serde
only.
impl Serialize for PollChoiceIdRef
Available on crate feature
serde
only.Source§impl ToOwned for PollChoiceIdRef
impl ToOwned for PollChoiceIdRef
Source§type Owned = PollChoiceId
type Owned = PollChoiceId
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