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 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§impl PartialEq<&PredictionIdRef> for PredictionId
impl PartialEq<&PredictionIdRef> for PredictionId
Source§impl PartialEq<PredictionId> for &PredictionIdRef
impl PartialEq<PredictionId> for &PredictionIdRef
Source§impl PartialEq<PredictionId> for PredictionIdRef
impl PartialEq<PredictionId> for PredictionIdRef
Source§impl PartialEq<PredictionIdRef> for PredictionId
impl PartialEq<PredictionIdRef> for PredictionId
Source§impl PartialEq for PredictionId
impl PartialEq for PredictionId
Source§impl PartialOrd for PredictionId
impl PartialOrd for PredictionId
Source§impl Serialize for PredictionId
Available on crate feature serde
only.
impl Serialize for PredictionId
Available on crate feature
serde
only.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
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
)