Skip to main content

BitwiseScalar

Trait BitwiseScalar 

Source
pub trait BitwiseScalar:
    TropicalScalar
    + Sealed
    + BitOr<Output = Self>
    + BitAnd<Output = Self> {
    const ZERO: Self;
    const ONES: Self;
}
Expand description

Unsigned-integer element types valid as a TropicalBitwise lane container.

Sealed: only u32 (32 lanes) and u64 (64 lanes) are permitted.

Required Associated Constants§

Source

const ZERO: Self

All lanes false (tropical zero).

Source

const ONES: Self

All lanes true (tropical one), i.e. !0.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl BitwiseScalar for u32

Source§

const ZERO: u32 = 0

Source§

const ONES: u32 = u32::MAX

Source§

impl BitwiseScalar for u64

Source§

const ZERO: u64 = 0

Source§

const ONES: u64 = u64::MAX

Implementors§