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
, { ... } }
🔬 This is a nightly-only experimental API. (portable_simd #86656)
Expand description

从另外两个 vectors 的元素创建一个 vector。

Associated Constants

🔬 This is a nightly-only experimental API. (portable_simd #86656)

从输入 vectors 的 lanes 映射到输出 vector

Provided methods

🔬 This is a nightly-only experimental API. (portable_simd #86656)

firstsecond 的 lanes 创建一个新的 vector。

lane iSelf::INDEX[i]First(j) 时为 first[j],在 Second(j) 时为 second[j]

Implementors