pub struct HypeTrainId(/* private fields */);
Available on crate feature
stream
only.Expand description
A Hype Train ID
Implementations§
Source§impl HypeTrainId
impl HypeTrainId
Sourcepub fn from_static(raw: &'static str) -> Self
pub fn from_static(raw: &'static str) -> Self
Constructs a newHypeTrainIdfrom a static reference
Sourcepub fn into_boxed_ref(self) -> Box<HypeTrainIdRef>
pub fn into_boxed_ref(self) -> Box<HypeTrainIdRef>
Converts this HypeTrainId
into a Box<HypeTrainIdRef>
This will drop any excess capacity.
Methods from Deref<Target = HypeTrainIdRef>§
Sourcepub fn as_cow(&self) -> Cow<'_, HypeTrainIdRef>
pub fn as_cow(&self) -> Cow<'_, HypeTrainIdRef>
Get a
Cow<'_, HypeTrainIdRef>
Trait Implementations§
Source§impl AsRef<HypeTrainIdRef> for HypeTrainId
impl AsRef<HypeTrainIdRef> for HypeTrainId
Source§fn as_ref(&self) -> &HypeTrainIdRef
fn as_ref(&self) -> &HypeTrainIdRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<str> for HypeTrainId
impl AsRef<str> for HypeTrainId
Source§impl Borrow<HypeTrainIdRef> for HypeTrainId
impl Borrow<HypeTrainIdRef> for HypeTrainId
Source§fn borrow(&self) -> &HypeTrainIdRef
fn borrow(&self) -> &HypeTrainIdRef
Immutably borrows from an owned value. Read more
Source§impl Borrow<str> for HypeTrainId
impl Borrow<str> for HypeTrainId
Source§impl Clone for HypeTrainId
impl Clone for HypeTrainId
Source§fn clone(&self) -> HypeTrainId
fn clone(&self) -> HypeTrainId
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 HypeTrainId
impl Debug for HypeTrainId
Source§impl Deref for HypeTrainId
impl Deref for HypeTrainId
Source§impl<'de> Deserialize<'de> for HypeTrainId
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for HypeTrainId
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 HypeTrainId
impl Display for HypeTrainId
Source§impl<'a> From<&'a HypeTrainId> for &'a HypeTrainIdRef
impl<'a> From<&'a HypeTrainId> for &'a HypeTrainIdRef
Source§fn from(owned: &'a HypeTrainId) -> Self
fn from(owned: &'a HypeTrainId) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a HypeTrainId> for Collection<'a, HypeTrainId>
impl<'a> From<&'a HypeTrainId> for Collection<'a, HypeTrainId>
Source§fn from(v: &'a HypeTrainId) -> Self
fn from(v: &'a HypeTrainId) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a HypeTrainId> for Cow<'a, HypeTrainIdRef>
impl<'a> From<&'a HypeTrainId> for Cow<'a, HypeTrainIdRef>
Source§fn from(owned: &'a HypeTrainId) -> Self
fn from(owned: &'a HypeTrainId) -> Self
Converts to this type from the input type.
Source§impl From<&HypeTrainIdRef> for HypeTrainId
impl From<&HypeTrainIdRef> for HypeTrainId
Source§fn from(s: &HypeTrainIdRef) -> Self
fn from(s: &HypeTrainIdRef) -> Self
Converts to this type from the input type.
Source§impl From<&str> for HypeTrainId
impl From<&str> for HypeTrainId
Source§impl From<Box<HypeTrainIdRef>> for HypeTrainId
impl From<Box<HypeTrainIdRef>> for HypeTrainId
Source§fn from(r: Box<HypeTrainIdRef>) -> Self
fn from(r: Box<HypeTrainIdRef>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<Cow<'a, HypeTrainIdRef>> for HypeTrainId
impl<'a> From<Cow<'a, HypeTrainIdRef>> for HypeTrainId
Source§fn from(r: Cow<'a, HypeTrainIdRef>) -> Self
fn from(r: Cow<'a, HypeTrainIdRef>) -> Self
Converts to this type from the input type.
Source§impl From<HypeTrainId> for Box<HypeTrainIdRef>
impl From<HypeTrainId> for Box<HypeTrainIdRef>
Source§fn from(r: HypeTrainId) -> Self
fn from(r: HypeTrainId) -> Self
Converts to this type from the input type.
Source§impl<'a> From<HypeTrainId> for Cow<'a, HypeTrainIdRef>
impl<'a> From<HypeTrainId> for Cow<'a, HypeTrainIdRef>
Source§fn from(owned: HypeTrainId) -> Self
fn from(owned: HypeTrainId) -> Self
Converts to this type from the input type.
Source§impl From<HypeTrainId> for String
impl From<HypeTrainId> for String
Source§fn from(s: HypeTrainId) -> Self
fn from(s: HypeTrainId) -> Self
Converts to this type from the input type.
Source§impl From<String> for HypeTrainId
impl From<String> for HypeTrainId
Source§impl FromStr for HypeTrainId
impl FromStr for HypeTrainId
Source§impl Hash for HypeTrainId
impl Hash for HypeTrainId
Source§impl<'a> IntoCow<'a, HypeTrainIdRef> for &'a HypeTrainId
impl<'a> IntoCow<'a, HypeTrainIdRef> for &'a HypeTrainId
Source§fn into_cow(self) -> Cow<'a, HypeTrainIdRef>
fn into_cow(self) -> Cow<'a, HypeTrainIdRef>
Make the cow with proper ownership, muu
Source§impl<'a> IntoCow<'a, HypeTrainIdRef> for HypeTrainId
impl<'a> IntoCow<'a, HypeTrainIdRef> for HypeTrainId
Source§fn into_cow(self) -> Cow<'a, HypeTrainIdRef>
fn into_cow(self) -> Cow<'a, HypeTrainIdRef>
Make the cow with proper ownership, muu
Source§impl Ord for HypeTrainId
impl Ord for HypeTrainId
Source§impl PartialEq<&HypeTrainId> for HypeTrainId
impl PartialEq<&HypeTrainId> for HypeTrainId
Source§impl PartialEq<&HypeTrainIdRef> for HypeTrainId
impl PartialEq<&HypeTrainIdRef> for HypeTrainId
Source§impl PartialEq<HypeTrainId> for &HypeTrainIdRef
impl PartialEq<HypeTrainId> for &HypeTrainIdRef
Source§impl PartialEq<HypeTrainId> for HypeTrainIdRef
impl PartialEq<HypeTrainId> for HypeTrainIdRef
Source§impl PartialEq<HypeTrainIdRef> for HypeTrainId
impl PartialEq<HypeTrainIdRef> for HypeTrainId
Source§impl PartialEq for HypeTrainId
impl PartialEq for HypeTrainId
Source§impl PartialOrd for HypeTrainId
impl PartialOrd for HypeTrainId
Source§impl Serialize for HypeTrainId
Available on crate feature serde
only.
impl Serialize for HypeTrainId
Available on crate feature
serde
only.impl Eq for HypeTrainId
impl StructuralPartialEq for HypeTrainId
Auto Trait Implementations§
impl Freeze for HypeTrainId
impl RefUnwindSafe for HypeTrainId
impl Send for HypeTrainId
impl Sync for HypeTrainId
impl Unpin for HypeTrainId
impl UnwindSafe for HypeTrainId
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
)