Trait faster::iters::IntoScalar [−][src]
pub trait IntoScalar<T>: SIMDObject where
T: Packable, { fn scalar_collect(&mut self) -> Vec<T>; fn scalar_fill<'a>(&mut self, fill: &'a mut [T]) -> &'a mut [T]; fn scalar_collect_all(&mut self) -> Vec<T>; fn scalar_fill_all<'a>(&mut self, fill: &'a mut [T]) -> &'a mut [T]; }
A trait which can transform a stream of vectors into a contiguous collection of scalars.
Required Methods
fn scalar_collect(&mut self) -> Vec<T>
Take an iterator of SIMD vectors, and store them in-order in a Vec.
fn scalar_fill<'a>(&mut self, fill: &'a mut [T]) -> &'a mut [T]
Take an iterator of SIMD vectors and store them in-order in fill
.
fn scalar_collect_all(&mut self) -> Vec<T>
Take an iterator of SIMD vectors, and store them in-order in a Vec, including possibly redundant elements at the end of the iterator.
fn scalar_fill_all<'a>(&mut self, fill: &'a mut [T]) -> &'a mut [T]
Take an iterator of SIMD vectors and store them in-order in fill
,
including possibly redundant elements at the end of the iterator.
Implementors
impl<'a, T, I> IntoScalar<T> for I where
I: SIMDIterator<Scalar = T>,
I::Vector: Packed<Scalar = T>,
T: Packable,