pub struct StreamSpec<'a> { /* private fields */ }Expand description
A borrowed alternate data stream specifier.
The type is stored without its leading $.
Implementations§
Source§impl<'a> StreamSpec<'a>
impl<'a> StreamSpec<'a>
Sourcepub const fn new(name: &'a str, stream_type: Option<&'a str>) -> Self
pub const fn new(name: &'a str, stream_type: Option<&'a str>) -> Self
Creates a specifier from a stream name and optional type.
Sourcepub const fn stream_type(&self) -> Option<&'a str>
pub const fn stream_type(&self) -> Option<&'a str>
Returns the stream type, without its leading $.
Sourcepub fn to_spec_buf(&self) -> StreamSpecBuf
pub fn to_spec_buf(&self) -> StreamSpecBuf
Converts this specifier into an owned one.
Trait Implementations§
Source§impl<'a> Clone for StreamSpec<'a>
impl<'a> Clone for StreamSpec<'a>
Source§fn clone(&self) -> StreamSpec<'a>
fn clone(&self) -> StreamSpec<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for StreamSpec<'a>
Source§impl<'a> Debug for StreamSpec<'a>
impl<'a> Debug for StreamSpec<'a>
impl<'a> Eq for StreamSpec<'a>
Source§impl<'a> From<StreamSpec<'a>> for StreamSpecBuf
impl<'a> From<StreamSpec<'a>> for StreamSpecBuf
Source§fn from(spec: StreamSpec<'a>) -> Self
fn from(spec: StreamSpec<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> Hash for StreamSpec<'a>
impl<'a> Hash for StreamSpec<'a>
Source§impl<'a> Ord for StreamSpec<'a>
impl<'a> Ord for StreamSpec<'a>
Source§fn cmp(&self, other: &StreamSpec<'a>) -> Ordering
fn cmp(&self, other: &StreamSpec<'a>) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl<'a> PartialEq for StreamSpec<'a>
impl<'a> PartialEq for StreamSpec<'a>
Source§impl<'a> PartialOrd for StreamSpec<'a>
impl<'a> PartialOrd for StreamSpec<'a>
impl<'a> StructuralPartialEq for StreamSpec<'a>
Auto Trait Implementations§
impl<'a> Freeze for StreamSpec<'a>
impl<'a> RefUnwindSafe for StreamSpec<'a>
impl<'a> Send for StreamSpec<'a>
impl<'a> Sync for StreamSpec<'a>
impl<'a> Unpin for StreamSpec<'a>
impl<'a> UnsafeUnpin for StreamSpec<'a>
impl<'a> UnwindSafe for StreamSpec<'a>
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more