Trait std::simd::Swizzle2 [−][src]
pub trait Swizzle2<const INPUT_LANES: usize, const OUTPUT_LANES: usize> {
const INDEX: [Which; OUTPUT_LANES];
fn swizzle2<T>(
first: Simd<T, INPUT_LANES>,
second: Simd<T, INPUT_LANES>
) -> Simd<T, OUTPUT_LANES>
where
T: SimdElement,
LaneCount<INPUT_LANES>: SupportedLaneCount,
LaneCount<OUTPUT_LANES>: SupportedLaneCount,
{ ... }
}
Expand description
Create a vector from the elements of two other vectors.
Associated Constants
Provided methods
fn swizzle2<T>(
first: Simd<T, INPUT_LANES>,
second: Simd<T, INPUT_LANES>
) -> Simd<T, OUTPUT_LANES> where
T: SimdElement,
LaneCount<INPUT_LANES>: SupportedLaneCount,
LaneCount<OUTPUT_LANES>: SupportedLaneCount,
fn swizzle2<T>(
first: Simd<T, INPUT_LANES>,
second: Simd<T, INPUT_LANES>
) -> Simd<T, OUTPUT_LANES> where
T: SimdElement,
LaneCount<INPUT_LANES>: SupportedLaneCount,
LaneCount<OUTPUT_LANES>: SupportedLaneCount,
Create a new vector from the lanes of first
and second
.
Lane i
is first[j]
when Self::INDEX[i]
is First(j)
, or second[j]
when it is
Second(j)
.