Skip to main content

ContainsSimd

Trait ContainsSimd 

Source
pub trait ContainsSimd: Sized {
    // Required method
    fn contains_simd(vector: &[Self], target: Self) -> bool;
}
Expand description

A SIMD-accelerated version of std::slice::contains

Required Methods§

Source

fn contains_simd(vector: &[Self], target: Self) -> bool

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ContainsSimd for u32

Source§

fn contains_simd(vector: &[u32], target: u32) -> bool

Source§

impl ContainsSimd for u64

Source§

fn contains_simd(vector: &[u64], target: u64) -> bool

Implementors§