Trait simd_iter::SimdIntegerIterExt
source · pub trait SimdIntegerIterExt {
type Scalar;
fn scalar_reduce_and(self) -> Option<Self::Scalar>;
fn scalar_reduce_or(self) -> Option<Self::Scalar>;
fn scalar_reduce_xor(self) -> Option<Self::Scalar>;
}Expand description
An extension trait for Iterators over SimdIntegers.
Required Associated Types§
Required Methods§
sourcefn scalar_reduce_and(self) -> Option<Self::Scalar>
fn scalar_reduce_and(self) -> Option<Self::Scalar>
Returns the bit-wise AND (&) reduction of all the scalars in the iterator.
sourcefn scalar_reduce_or(self) -> Option<Self::Scalar>
fn scalar_reduce_or(self) -> Option<Self::Scalar>
Returns the bit-wise OR (|) reduction of all the scalars in the iterator.
sourcefn scalar_reduce_xor(self) -> Option<Self::Scalar>
fn scalar_reduce_xor(self) -> Option<Self::Scalar>
Returns the bit-wise XOR (^) reduction of all the scalars in the iterator.