FromBitmask

Trait FromBitmask 

Source
pub trait FromBitmask<T> {
    // Required method
    fn from_bitmask(mask: u8) -> Self;
}
Expand description

Trait for creating SIMD vectors from bitmasks

Required Methods§

Source

fn from_bitmask(mask: u8) -> Self

Create a SIMD vector from a bitmask where each bit becomes 0 or T::MAX

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 FromBitmask<u32> for u32x8

Source§

fn from_bitmask(mask: u8) -> Self

Source§

impl FromBitmask<u64> for u64x8

Source§

fn from_bitmask(mask: u8) -> Self

Implementors§