pub struct PredictionIdRef(/* private fields */);
Available on crate feature
points
only.Expand description
A prediction ID
Implementations§
Source§impl PredictionIdRef
impl PredictionIdRef
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 PredictionIdRef
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 PredictionIdRef
Sourcepub fn into_owned(self: Box<PredictionIdRef>) -> PredictionId
pub fn into_owned(self: Box<PredictionIdRef>) -> PredictionId
Converts a Box<PredictionIdRef>
into a PredictionId
without copying or allocating
Source§impl PredictionIdRef
impl 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 PredictionIdRef
impl AsRef<str> for PredictionIdRef
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 PredictionIdRef
impl Borrow<str> for PredictionIdRef
Source§impl Debug for PredictionIdRef
impl Debug for PredictionIdRef
Source§impl<'de: 'a, 'a> Deserialize<'de> for &'a PredictionIdRef
Available on crate feature serde
only.
impl<'de: 'a, 'a> Deserialize<'de> for &'a PredictionIdRef
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<PredictionIdRef>
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for Box<PredictionIdRef>
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 PredictionIdRef
impl Display for PredictionIdRef
Source§impl<'a> From<&'a &'a PredictionIdRef> for Collection<'a, PredictionId>
impl<'a> From<&'a &'a PredictionIdRef> for Collection<'a, PredictionId>
Source§fn from(v: &'a &'a PredictionIdRef) -> Self
fn from(v: &'a &'a PredictionIdRef) -> Self
Converts to this type from the input type.
Source§impl<'a, 'b: 'a> From<&'a Cow<'b, PredictionIdRef>> for &'a PredictionIdRef
impl<'a, 'b: 'a> From<&'a Cow<'b, PredictionIdRef>> for &'a PredictionIdRef
Source§fn from(r: &'a Cow<'b, PredictionIdRef>) -> &'a PredictionIdRef
fn from(r: &'a Cow<'b, PredictionIdRef>) -> &'a PredictionIdRef
Converts to this type from the input type.
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 From<&PredictionIdRef> for Arc<PredictionIdRef>
impl From<&PredictionIdRef> for Arc<PredictionIdRef>
Source§fn from(r: &PredictionIdRef) -> Self
fn from(r: &PredictionIdRef) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a PredictionIdRef> for Cow<'a, PredictionIdRef>
impl<'a> From<&'a PredictionIdRef> for Cow<'a, PredictionIdRef>
Source§fn from(r: &'a PredictionIdRef) -> Self
fn from(r: &'a PredictionIdRef) -> 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<&PredictionIdRef> for Rc<PredictionIdRef>
impl From<&PredictionIdRef> for Rc<PredictionIdRef>
Source§fn from(r: &PredictionIdRef) -> Self
fn from(r: &PredictionIdRef) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a String> for &'a PredictionIdRef
impl<'a> From<&'a String> for &'a PredictionIdRef
Source§impl<'a> From<&'a str> for &'a PredictionIdRef
impl<'a> From<&'a str> for &'a PredictionIdRef
Source§fn from(s: &'a str) -> &'a PredictionIdRef
fn from(s: &'a str) -> &'a PredictionIdRef
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 Hash for PredictionIdRef
impl Hash for PredictionIdRef
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 &'a PredictionIdRef
impl<'a> IntoCow<'a, PredictionIdRef> for &'a PredictionIdRef
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 PredictionIdRef
impl Ord for PredictionIdRef
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 PredictionIdRef
impl PartialEq for PredictionIdRef
Source§impl PartialOrd for PredictionIdRef
impl PartialOrd for PredictionIdRef
Source§impl Serialize for PredictionIdRef
Available on crate feature serde
only.
impl Serialize for PredictionIdRef
Available on crate feature
serde
only.Source§impl ToOwned for PredictionIdRef
impl ToOwned for PredictionIdRef
Source§type Owned = PredictionId
type Owned = PredictionId
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