pub struct StreamSpecBuf { /* private fields */ }Expand description
An owned alternate data stream specifier.
Implementations§
Source§impl StreamSpecBuf
impl StreamSpecBuf
Sourcepub fn new(
name: impl Into<String>,
stream_type: Option<impl Into<String>>,
) -> Self
pub fn new( name: impl Into<String>, stream_type: Option<impl Into<String>>, ) -> Self
Creates a specifier from a stream name and optional type.
Sourcepub fn stream_type(&self) -> Option<&str>
pub fn stream_type(&self) -> Option<&str>
Returns the stream type, without its leading $.
Sourcepub fn to_spec(&self) -> StreamSpec<'_>
pub fn to_spec(&self) -> StreamSpec<'_>
Borrows this specifier.
Trait Implementations§
Source§impl Clone for StreamSpecBuf
impl Clone for StreamSpecBuf
Source§fn clone(&self) -> StreamSpecBuf
fn clone(&self) -> StreamSpecBuf
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 moreSource§impl Debug for StreamSpecBuf
impl Debug for StreamSpecBuf
impl Eq for StreamSpecBuf
Source§impl From<&StreamEntry> for StreamSpecBuf
impl From<&StreamEntry> for StreamSpecBuf
Source§fn from(entry: &StreamEntry) -> Self
fn from(entry: &StreamEntry) -> Self
Converts to this type from the input type.
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 Hash for StreamSpecBuf
impl Hash for StreamSpecBuf
Source§impl Ord for StreamSpecBuf
impl Ord for StreamSpecBuf
Source§fn cmp(&self, other: &StreamSpecBuf) -> Ordering
fn cmp(&self, other: &StreamSpecBuf) -> 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 PartialEq for StreamSpecBuf
impl PartialEq for StreamSpecBuf
Source§impl PartialOrd for StreamSpecBuf
impl PartialOrd for StreamSpecBuf
impl StructuralPartialEq for StreamSpecBuf
Auto Trait Implementations§
impl Freeze for StreamSpecBuf
impl RefUnwindSafe for StreamSpecBuf
impl Send for StreamSpecBuf
impl Sync for StreamSpecBuf
impl Unpin for StreamSpecBuf
impl UnsafeUnpin for StreamSpecBuf
impl UnwindSafe for StreamSpecBuf
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