Skip to main content

KernelItem

Trait KernelItem 

Source
pub trait KernelItem:
    Copy
    + Send
    + Sync {
    const NAN: bool;

    // Required method
    fn has_nan(self) -> bool;
}
Expand description

A type that function objects take or give: a float, a complex number, an integer, a Boolean, a character or an ordering. Pieces on several threads read and write items.

Required Associated Constants§

Source

const NAN: bool

Whether the type has NaN, as floats and complex numbers do.

Required Methods§

Source

fn has_nan(self) -> bool

Whether this item is NaN, or for a complex number has a NaN part. An integer or Boolean never is.

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 KernelItem for Ordering

Source§

const NAN: bool = false

Source§

fn has_nan(self) -> bool

Source§

impl KernelItem for bool

Source§

const NAN: bool = false

Source§

fn has_nan(self) -> bool

Source§

impl KernelItem for char

Source§

const NAN: bool = false

Source§

fn has_nan(self) -> bool

Source§

impl KernelItem for f32

Source§

const NAN: bool = true

Source§

fn has_nan(self) -> bool

Source§

impl KernelItem for f64

Source§

const NAN: bool = true

Source§

fn has_nan(self) -> bool

Source§

impl KernelItem for i16

Source§

const NAN: bool = false

Source§

fn has_nan(self) -> bool

Source§

impl KernelItem for i32

Source§

const NAN: bool = false

Source§

fn has_nan(self) -> bool

Source§

impl KernelItem for i64

Source§

const NAN: bool = false

Source§

fn has_nan(self) -> bool

Source§

impl KernelItem for u8

Source§

const NAN: bool = false

Source§

fn has_nan(self) -> bool

Implementors§