Skip to main content

Primitive

Trait Primitive 

Source
pub trait Primitive:
    Sealed
    + Copy
    + Send
    + Sync
    + 'static {
    const KIND: Kind;
}
Expand description

A type one shared value can hold: i64, u64, f64 or bool.

Sealed: the table stores 64 bits and a kind, and every write keeps those bits in the one form its kind allows.

Required Associated Constants§

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 Primitive for bool

Source§

const KIND: Kind = Kind::Bool

Source§

impl Primitive for f64

Source§

const KIND: Kind = Kind::F64

Source§

impl Primitive for i64

Source§

const KIND: Kind = Kind::I64

Source§

impl Primitive for u64

Source§

const KIND: Kind = Kind::U64

Implementors§