Trait Swizzle
pub trait Swizzle<const N: usize>
Creates a vector from the elements of another vector.
Associated Constants
const INDEX: [usize; N];Map from the elements of the input vector to the output vector.
Provided Methods
fn swizzle<T, const M: usize>(vector: Simd<T, M>) -> Simd<T, N> where T: SimdElement,Creates a new vector from the elements of
vector.Lane
iof the output isvector[Self::INDEX[i]].fn concat_swizzle<T, const M: usize>(first: Simd<T, M>, second: Simd<T, M>) -> Simd<T, N> where T: SimdElement,Creates a new vector from the elements of
firstandsecond.Lane
iof the output isconcat[Self::INDEX[i]], whereconcatis the concatenation offirstandsecond.fn swizzle_mask<T, const M: usize>(mask: Mask<T, M>) -> Mask<T, N> where T: MaskElement,Creates a new mask from the elements of
mask.Element
iof the output ismask[Self::INDEX[i]].fn concat_swizzle_mask<T, const M: usize>(first: Mask<T, M>, second: Mask<T, M>) -> Mask<T, N> where T: MaskElement,Creates a new mask from the elements of
firstandsecond.Element
iof the output isconcat[Self::INDEX[i]], whereconcatis the concatenation offirstandsecond.
Implementors
impl<const N: usize> Swizzle<N> for CombineHalvesimpl<const N: usize> Swizzle<N> for Evenimpl<const N: usize> Swizzle<N> for Hiimpl<const N: usize> Swizzle<N> for Loimpl<const N: usize> Swizzle<N> for Oddimpl<const N: usize> Swizzle<N> for Reverseimpl<const N: usize, const M: usize> Swizzle<M> for Resize<N>impl<const N: usize, const START: usize, const LEN: usize> Swizzle<LEN> for Extract<N, START>impl<const OFFSET: usize, const N: usize> Swizzle<N> for Rotate<OFFSET>impl<const OFFSET: usize, const N: usize> Swizzle<N> for Rotate<OFFSET>impl<const OFFSET: usize, const N: usize> Swizzle<N> for Shift<OFFSET>impl<const OFFSET: usize, const N: usize> Swizzle<N> for Shift<OFFSET>