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