pub struct VecToStream<T: Sample> { /* private fields */ }Expand description
Block for vector to stream.
The output stream is tagged with VecToStream::start and VecToStream::end
on the first and last sample of the stream. For a one-sample vector, these
tags will be on the same sample.
Empty vectors are silently discarded.
Implementations§
Source§impl<T: Sample> VecToStream<T>
impl<T: Sample> VecToStream<T>
Sourcepub fn new(
src: NCReadStream<Vec<T>>,
) -> (Self, <WriteStream<T> as StreamReadSide>::ReadSide)
pub fn new( src: NCReadStream<Vec<T>>, ) -> (Self, <WriteStream<T> as StreamReadSide>::ReadSide)
Create a new block.
The arguments to this function are the mandatory input streams, and the mandatory parameters.
The return values are the block itself, plus any mandatory output streams.
This function was generated by a macro.
Trait Implementations§
Source§impl<T: Sample> Block for VecToStream<T>
impl<T: Sample> Block for VecToStream<T>
Source§impl<T: Sample> BlockEOF for VecToStream<T>
impl<T: Sample> BlockEOF for VecToStream<T>
Source§impl<T: Sample> BlockName for VecToStream<T>
impl<T: Sample> BlockName for VecToStream<T>
Source§fn block_name(&self) -> &str
fn block_name(&self) -> &str
Name of block Read more
Auto Trait Implementations§
impl<T> Freeze for VecToStream<T>
impl<T> RefUnwindSafe for VecToStream<T>where
T: RefUnwindSafe,
impl<T> Send for VecToStream<T>
impl<T> Sync for VecToStream<T>
impl<T> Unpin for VecToStream<T>
impl<T> UnwindSafe for VecToStream<T>where
T: RefUnwindSafe,
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> 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