pub struct PredictionOutcomeId(/* private fields */);
Available on crate feature
points
only.Expand description
A prediction choice ID
Implementations§
Source§impl PredictionOutcomeId
impl PredictionOutcomeId
Sourcepub fn from_static(raw: &'static str) -> Self
pub fn from_static(raw: &'static str) -> Self
Constructs a newPredictionOutcomeIdfrom a static reference
Sourcepub fn into_boxed_ref(self) -> Box<PredictionOutcomeIdRef>
pub fn into_boxed_ref(self) -> Box<PredictionOutcomeIdRef>
Converts this PredictionOutcomeId
into a Box<PredictionOutcomeIdRef>
This will drop any excess capacity.
Methods from Deref<Target = 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 PredictionOutcomeId
impl AsRef<str> for PredictionOutcomeId
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 PredictionOutcomeId
impl Borrow<str> for PredictionOutcomeId
Source§impl Clone for PredictionOutcomeId
impl Clone for PredictionOutcomeId
Source§fn clone(&self) -> PredictionOutcomeId
fn clone(&self) -> PredictionOutcomeId
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 PredictionOutcomeId
impl Debug for PredictionOutcomeId
Source§impl Deref for PredictionOutcomeId
impl Deref for PredictionOutcomeId
Source§impl<'de> Deserialize<'de> for PredictionOutcomeId
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for PredictionOutcomeId
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 PredictionOutcomeId
impl Display for PredictionOutcomeId
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<'a> From<&'a PredictionOutcomeId> for Collection<'a, PredictionOutcomeId>
impl<'a> From<&'a PredictionOutcomeId> for Collection<'a, PredictionOutcomeId>
Source§fn from(v: &'a PredictionOutcomeId) -> Self
fn from(v: &'a PredictionOutcomeId) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a PredictionOutcomeId> for Cow<'a, PredictionOutcomeIdRef>
impl<'a> From<&'a PredictionOutcomeId> for Cow<'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 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<&str> for PredictionOutcomeId
impl From<&str> for PredictionOutcomeId
Source§impl From<Box<PredictionOutcomeIdRef>> for PredictionOutcomeId
impl From<Box<PredictionOutcomeIdRef>> for PredictionOutcomeId
Source§fn from(r: Box<PredictionOutcomeIdRef>) -> Self
fn from(r: Box<PredictionOutcomeIdRef>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<Cow<'a, PredictionOutcomeIdRef>> for PredictionOutcomeId
impl<'a> From<Cow<'a, PredictionOutcomeIdRef>> for PredictionOutcomeId
Source§fn from(r: Cow<'a, PredictionOutcomeIdRef>) -> Self
fn from(r: Cow<'a, PredictionOutcomeIdRef>) -> Self
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<'a> From<PredictionOutcomeId> for Cow<'a, PredictionOutcomeIdRef>
impl<'a> From<PredictionOutcomeId> for Cow<'a, PredictionOutcomeIdRef>
Source§fn from(owned: PredictionOutcomeId) -> Self
fn from(owned: PredictionOutcomeId) -> Self
Converts to this type from the input type.
Source§impl From<PredictionOutcomeId> for String
impl From<PredictionOutcomeId> for String
Source§fn from(s: PredictionOutcomeId) -> Self
fn from(s: PredictionOutcomeId) -> Self
Converts to this type from the input type.
Source§impl From<String> for PredictionOutcomeId
impl From<String> for PredictionOutcomeId
Source§impl FromStr for PredictionOutcomeId
impl FromStr for PredictionOutcomeId
Source§impl Hash for PredictionOutcomeId
impl Hash for PredictionOutcomeId
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 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 PredictionOutcomeId
impl Ord for PredictionOutcomeId
Source§impl PartialEq for PredictionOutcomeId
impl PartialEq for PredictionOutcomeId
Source§impl PartialOrd for PredictionOutcomeId
impl PartialOrd for PredictionOutcomeId
Source§impl Serialize for PredictionOutcomeId
Available on crate feature serde
only.
impl Serialize for PredictionOutcomeId
Available on crate feature
serde
only.impl Eq for PredictionOutcomeId
impl StructuralPartialEq for PredictionOutcomeId
Auto Trait Implementations§
impl Freeze for PredictionOutcomeId
impl RefUnwindSafe for PredictionOutcomeId
impl Send for PredictionOutcomeId
impl Sync for PredictionOutcomeId
impl Unpin for PredictionOutcomeId
impl UnwindSafe for PredictionOutcomeId
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)