Struct twitch_types::stream::StreamIdRef
source · pub struct StreamIdRef(/* private fields */);
Available on crate feature
stream
only.Expand description
A Stream ID
Implementations§
source§impl StreamIdRef
impl StreamIdRef
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 StreamIdRef
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 StreamIdRef
sourcepub fn into_owned(self: Box<StreamIdRef>) -> StreamId
pub fn into_owned(self: Box<StreamIdRef>) -> StreamId
Converts a Box<StreamIdRef>
into a StreamId
without copying or allocating
source§impl StreamIdRef
impl StreamIdRef
sourcepub fn as_cow(&self) -> Cow<'_, StreamIdRef>
pub fn as_cow(&self) -> Cow<'_, StreamIdRef>
Get a
Cow<'_, StreamIdRef>
Trait Implementations§
source§impl<'a> Arbitrary<'a> for &'a StreamIdRef
Available on crate feature arbitrary
only.
impl<'a> Arbitrary<'a> for &'a StreamIdRef
Available on crate feature
arbitrary
only.source§fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self, Error>
fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self, Error>
Generate an arbitrary value of
Self
from the given unstructured data. Read moresource§fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moresource§impl AsRef<StreamIdRef> for StreamId
impl AsRef<StreamIdRef> for StreamId
source§fn as_ref(&self) -> &StreamIdRef
fn as_ref(&self) -> &StreamIdRef
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<str> for StreamIdRef
impl AsRef<str> for StreamIdRef
source§impl Borrow<StreamIdRef> for StreamId
impl Borrow<StreamIdRef> for StreamId
source§fn borrow(&self) -> &StreamIdRef
fn borrow(&self) -> &StreamIdRef
Immutably borrows from an owned value. Read more
source§impl Borrow<str> for StreamIdRef
impl Borrow<str> for StreamIdRef
source§impl Debug for StreamIdRef
impl Debug for StreamIdRef
source§impl<'de: 'a, 'a> Deserialize<'de> for &'a StreamIdRef
Available on crate feature serde
only.
impl<'de: 'a, 'a> Deserialize<'de> for &'a StreamIdRef
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<StreamIdRef>
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for Box<StreamIdRef>
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 StreamIdRef
impl Display for StreamIdRef
source§impl<'a> From<&'a &'a StreamIdRef> for Collection<'a, StreamId>
impl<'a> From<&'a &'a StreamIdRef> for Collection<'a, StreamId>
source§fn from(v: &'a &'a StreamIdRef) -> Self
fn from(v: &'a &'a StreamIdRef) -> Self
Converts to this type from the input type.
source§impl<'a, 'b: 'a> From<&'a Cow<'b, StreamIdRef>> for &'a StreamIdRef
impl<'a, 'b: 'a> From<&'a Cow<'b, StreamIdRef>> for &'a StreamIdRef
source§fn from(r: &'a Cow<'b, StreamIdRef>) -> &'a StreamIdRef
fn from(r: &'a Cow<'b, StreamIdRef>) -> &'a StreamIdRef
Converts to this type from the input type.
source§impl<'a> From<&'a StreamId> for &'a StreamIdRef
impl<'a> From<&'a StreamId> for &'a StreamIdRef
source§impl From<&StreamIdRef> for Arc<StreamIdRef>
impl From<&StreamIdRef> for Arc<StreamIdRef>
source§fn from(r: &StreamIdRef) -> Self
fn from(r: &StreamIdRef) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a StreamIdRef> for Cow<'a, StreamIdRef>
impl<'a> From<&'a StreamIdRef> for Cow<'a, StreamIdRef>
source§fn from(r: &'a StreamIdRef) -> Self
fn from(r: &'a StreamIdRef) -> Self
Converts to this type from the input type.
source§impl From<&StreamIdRef> for Rc<StreamIdRef>
impl From<&StreamIdRef> for Rc<StreamIdRef>
source§fn from(r: &StreamIdRef) -> Self
fn from(r: &StreamIdRef) -> Self
Converts to this type from the input type.
source§impl From<&StreamIdRef> for StreamId
impl From<&StreamIdRef> for StreamId
source§fn from(s: &StreamIdRef) -> Self
fn from(s: &StreamIdRef) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a String> for &'a StreamIdRef
impl<'a> From<&'a String> for &'a StreamIdRef
source§impl<'a> From<&'a str> for &'a StreamIdRef
impl<'a> From<&'a str> for &'a StreamIdRef
source§fn from(s: &'a str) -> &'a StreamIdRef
fn from(s: &'a str) -> &'a StreamIdRef
Converts to this type from the input type.
source§impl Hash for StreamIdRef
impl Hash for StreamIdRef
source§impl<'a> IntoCow<'a, StreamIdRef> for &'a StreamId
impl<'a> IntoCow<'a, StreamIdRef> for &'a StreamId
source§fn into_cow(self) -> Cow<'a, StreamIdRef>
fn into_cow(self) -> Cow<'a, StreamIdRef>
Make the cow with proper ownership, muu
source§impl<'a> IntoCow<'a, StreamIdRef> for &'a StreamIdRef
impl<'a> IntoCow<'a, StreamIdRef> for &'a StreamIdRef
source§fn into_cow(self) -> Cow<'a, StreamIdRef>
fn into_cow(self) -> Cow<'a, StreamIdRef>
Make the cow with proper ownership, muu
source§impl<'a> IntoCow<'a, StreamIdRef> for StreamId
impl<'a> IntoCow<'a, StreamIdRef> for StreamId
source§fn into_cow(self) -> Cow<'a, StreamIdRef>
fn into_cow(self) -> Cow<'a, StreamIdRef>
Make the cow with proper ownership, muu
source§impl Ord for StreamIdRef
impl Ord for StreamIdRef
source§impl PartialEq<&StreamIdRef> for StreamId
impl PartialEq<&StreamIdRef> for StreamId
source§fn eq(&self, other: &&StreamIdRef) -> bool
fn eq(&self, other: &&StreamIdRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<StreamId> for &StreamIdRef
impl PartialEq<StreamId> for &StreamIdRef
source§impl PartialEq<StreamId> for StreamIdRef
impl PartialEq<StreamId> for StreamIdRef
source§impl PartialEq<StreamIdRef> for StreamId
impl PartialEq<StreamIdRef> for StreamId
source§fn eq(&self, other: &StreamIdRef) -> bool
fn eq(&self, other: &StreamIdRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq for StreamIdRef
impl PartialEq for StreamIdRef
source§fn eq(&self, other: &StreamIdRef) -> bool
fn eq(&self, other: &StreamIdRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for StreamIdRef
impl PartialOrd for StreamIdRef
source§fn partial_cmp(&self, other: &StreamIdRef) -> Option<Ordering>
fn partial_cmp(&self, other: &StreamIdRef) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for StreamIdRef
Available on crate feature serde
only.
impl Serialize for StreamIdRef
Available on crate feature
serde
only.source§impl ToOwned for StreamIdRef
impl ToOwned for StreamIdRef
source§impl<'zf> ZeroFrom<'zf, StreamId> for &'zf StreamIdRef
Available on crate feature zerofrom
only.
impl<'zf> ZeroFrom<'zf, StreamId> for &'zf StreamIdRef
Available on crate feature
zerofrom
only.source§impl<'zf> ZeroFrom<'zf, StreamIdRef> for &'zf StreamIdRef
Available on crate feature zerofrom
only.
impl<'zf> ZeroFrom<'zf, StreamIdRef> for &'zf StreamIdRef
Available on crate feature
zerofrom
only.source§fn zero_from(other: &'zf StreamIdRef) -> Self
fn zero_from(other: &'zf StreamIdRef) -> Self
Clone the other
C
into a struct that may retain references into C
.