pub struct StreamMarkerIdRef(/* private fields */);
Available on crate feature
stream
only.Expand description
A stream marker ID
Implementations§
Source§impl StreamMarkerIdRef
impl StreamMarkerIdRef
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 StreamMarkerIdRef
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 StreamMarkerIdRef
Sourcepub fn into_owned(self: Box<StreamMarkerIdRef>) -> StreamMarkerId
pub fn into_owned(self: Box<StreamMarkerIdRef>) -> StreamMarkerId
Converts a Box<StreamMarkerIdRef>
into a StreamMarkerId
without copying or allocating
Source§impl StreamMarkerIdRef
impl StreamMarkerIdRef
Sourcepub fn as_cow(&self) -> Cow<'_, StreamMarkerIdRef>
pub fn as_cow(&self) -> Cow<'_, StreamMarkerIdRef>
Trait Implementations§
Source§impl AsRef<StreamMarkerIdRef> for StreamMarkerId
impl AsRef<StreamMarkerIdRef> for StreamMarkerId
Source§fn as_ref(&self) -> &StreamMarkerIdRef
fn as_ref(&self) -> &StreamMarkerIdRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<str> for StreamMarkerIdRef
impl AsRef<str> for StreamMarkerIdRef
Source§impl Borrow<StreamMarkerIdRef> for StreamMarkerId
impl Borrow<StreamMarkerIdRef> for StreamMarkerId
Source§fn borrow(&self) -> &StreamMarkerIdRef
fn borrow(&self) -> &StreamMarkerIdRef
Immutably borrows from an owned value. Read more
Source§impl Borrow<str> for StreamMarkerIdRef
impl Borrow<str> for StreamMarkerIdRef
Source§impl Debug for StreamMarkerIdRef
impl Debug for StreamMarkerIdRef
Source§impl<'de: 'a, 'a> Deserialize<'de> for &'a StreamMarkerIdRef
Available on crate feature serde
only.
impl<'de: 'a, 'a> Deserialize<'de> for &'a StreamMarkerIdRef
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<StreamMarkerIdRef>
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for Box<StreamMarkerIdRef>
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 StreamMarkerIdRef
impl Display for StreamMarkerIdRef
Source§impl<'a> From<&'a &'a StreamMarkerIdRef> for Collection<'a, StreamMarkerId>
impl<'a> From<&'a &'a StreamMarkerIdRef> for Collection<'a, StreamMarkerId>
Source§fn from(v: &'a &'a StreamMarkerIdRef) -> Self
fn from(v: &'a &'a StreamMarkerIdRef) -> Self
Converts to this type from the input type.
Source§impl<'a, 'b: 'a> From<&'a Cow<'b, StreamMarkerIdRef>> for &'a StreamMarkerIdRef
impl<'a, 'b: 'a> From<&'a Cow<'b, StreamMarkerIdRef>> for &'a StreamMarkerIdRef
Source§fn from(r: &'a Cow<'b, StreamMarkerIdRef>) -> &'a StreamMarkerIdRef
fn from(r: &'a Cow<'b, StreamMarkerIdRef>) -> &'a StreamMarkerIdRef
Converts to this type from the input type.
Source§impl<'a> From<&'a StreamMarkerId> for &'a StreamMarkerIdRef
impl<'a> From<&'a StreamMarkerId> for &'a StreamMarkerIdRef
Source§fn from(owned: &'a StreamMarkerId) -> Self
fn from(owned: &'a StreamMarkerId) -> Self
Converts to this type from the input type.
Source§impl From<&StreamMarkerIdRef> for Arc<StreamMarkerIdRef>
impl From<&StreamMarkerIdRef> for Arc<StreamMarkerIdRef>
Source§fn from(r: &StreamMarkerIdRef) -> Self
fn from(r: &StreamMarkerIdRef) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a StreamMarkerIdRef> for Cow<'a, StreamMarkerIdRef>
impl<'a> From<&'a StreamMarkerIdRef> for Cow<'a, StreamMarkerIdRef>
Source§fn from(r: &'a StreamMarkerIdRef) -> Self
fn from(r: &'a StreamMarkerIdRef) -> Self
Converts to this type from the input type.
Source§impl From<&StreamMarkerIdRef> for Rc<StreamMarkerIdRef>
impl From<&StreamMarkerIdRef> for Rc<StreamMarkerIdRef>
Source§fn from(r: &StreamMarkerIdRef) -> Self
fn from(r: &StreamMarkerIdRef) -> Self
Converts to this type from the input type.
Source§impl From<&StreamMarkerIdRef> for StreamMarkerId
impl From<&StreamMarkerIdRef> for StreamMarkerId
Source§fn from(s: &StreamMarkerIdRef) -> Self
fn from(s: &StreamMarkerIdRef) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a String> for &'a StreamMarkerIdRef
impl<'a> From<&'a String> for &'a StreamMarkerIdRef
Source§impl<'a> From<&'a str> for &'a StreamMarkerIdRef
impl<'a> From<&'a str> for &'a StreamMarkerIdRef
Source§fn from(s: &'a str) -> &'a StreamMarkerIdRef
fn from(s: &'a str) -> &'a StreamMarkerIdRef
Converts to this type from the input type.
Source§impl From<StreamMarkerId> for Box<StreamMarkerIdRef>
impl From<StreamMarkerId> for Box<StreamMarkerIdRef>
Source§fn from(r: StreamMarkerId) -> Self
fn from(r: StreamMarkerId) -> Self
Converts to this type from the input type.
Source§impl Hash for StreamMarkerIdRef
impl Hash for StreamMarkerIdRef
Source§impl<'a> IntoCow<'a, StreamMarkerIdRef> for &'a StreamMarkerId
impl<'a> IntoCow<'a, StreamMarkerIdRef> for &'a StreamMarkerId
Source§fn into_cow(self) -> Cow<'a, StreamMarkerIdRef>
fn into_cow(self) -> Cow<'a, StreamMarkerIdRef>
Make the cow with proper ownership, muu
Source§impl<'a> IntoCow<'a, StreamMarkerIdRef> for &'a StreamMarkerIdRef
impl<'a> IntoCow<'a, StreamMarkerIdRef> for &'a StreamMarkerIdRef
Source§fn into_cow(self) -> Cow<'a, StreamMarkerIdRef>
fn into_cow(self) -> Cow<'a, StreamMarkerIdRef>
Make the cow with proper ownership, muu
Source§impl<'a> IntoCow<'a, StreamMarkerIdRef> for StreamMarkerId
impl<'a> IntoCow<'a, StreamMarkerIdRef> for StreamMarkerId
Source§fn into_cow(self) -> Cow<'a, StreamMarkerIdRef>
fn into_cow(self) -> Cow<'a, StreamMarkerIdRef>
Make the cow with proper ownership, muu
Source§impl Ord for StreamMarkerIdRef
impl Ord for StreamMarkerIdRef
Source§impl PartialEq<&StreamMarkerIdRef> for StreamMarkerId
impl PartialEq<&StreamMarkerIdRef> for StreamMarkerId
Source§impl PartialEq<StreamMarkerId> for &StreamMarkerIdRef
impl PartialEq<StreamMarkerId> for &StreamMarkerIdRef
Source§impl PartialEq<StreamMarkerId> for StreamMarkerIdRef
impl PartialEq<StreamMarkerId> for StreamMarkerIdRef
Source§impl PartialEq<StreamMarkerIdRef> for StreamMarkerId
impl PartialEq<StreamMarkerIdRef> for StreamMarkerId
Source§impl PartialEq for StreamMarkerIdRef
impl PartialEq for StreamMarkerIdRef
Source§impl PartialOrd for StreamMarkerIdRef
impl PartialOrd for StreamMarkerIdRef
Source§impl Serialize for StreamMarkerIdRef
Available on crate feature serde
only.
impl Serialize for StreamMarkerIdRef
Available on crate feature
serde
only.Source§impl ToOwned for StreamMarkerIdRef
impl ToOwned for StreamMarkerIdRef
Source§type Owned = StreamMarkerId
type Owned = StreamMarkerId
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