pub struct VectorSink<T: Sample> { /* private fields */ }Expand description
VectorSink.
This block is really only useful for unit tests. It takes what comes from the stream and just adds it to a vector. Tags are stored to another vector.
Implementations§
Source§impl<T: Sample> VectorSink<T>
impl<T: Sample> VectorSink<T>
pub fn new(src: ReadStream<T>, max_size: usize) -> Self
Trait Implementations§
Source§impl<T: Sample> Block for VectorSink<T>
impl<T: Sample> Block for VectorSink<T>
Source§impl<T: Sample> BlockEOF for VectorSink<T>
impl<T: Sample> BlockEOF for VectorSink<T>
Source§impl<T: Sample> BlockName for VectorSink<T>
impl<T: Sample> BlockName for VectorSink<T>
Source§fn block_name(&self) -> &str
fn block_name(&self) -> &str
Name of block Read more
Auto Trait Implementations§
impl<T> Freeze for VectorSink<T>
impl<T> RefUnwindSafe for VectorSink<T>where
T: RefUnwindSafe,
impl<T> Send for VectorSink<T>
impl<T> Sync for VectorSink<T>
impl<T> Unpin for VectorSink<T>
impl<T> UnwindSafe for VectorSink<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