Skip to main content

LaneOp

Trait LaneOp 

Source
pub trait LaneOp {
    type Out;

    // Required method
    fn call<const N: usize>(self) -> Self::Out;
}
Expand description

A computation that is generic over the lane width, for for_lanes.

This is a trait rather than a closure because a closure cannot be generic over a const parameter.

Required Associated Types§

Source

type Out

What the computation produces.

Required Methods§

Source

fn call<const N: usize>(self) -> Self::Out

Run it at width N.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§