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 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 for PredictionOutcomeIdRef
impl PartialEq for PredictionOutcomeIdRef
Source§impl PartialOrd for PredictionOutcomeIdRef
impl PartialOrd for PredictionOutcomeIdRef
Source§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
Source§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