Trait wasmer_types_near::ValueType[][src]

pub unsafe trait ValueType: Copy where
    Self: Sized
{ }

Trait for a Value type. A Value type is a type that is always valid and may be safely copied.

That is, for all possible bit patterns a valid Value type can be constructed from those bits.

Concretely a u32 is a Value type because every combination of 32 bits is a valid u32. However a bool is not a Value type because any bit patterns other than 0 and 1 are invalid in Rust and may cause undefined behavior if a bool is constructed from those bytes.

Implementations on Foreign Types

impl ValueType for u8[src]

impl ValueType for i8[src]

impl ValueType for u16[src]

impl ValueType for i16[src]

impl ValueType for u32[src]

impl ValueType for i32[src]

impl ValueType for u64[src]

impl ValueType for i64[src]

impl ValueType for f32[src]

impl ValueType for f64[src]

Loading content...

Implementors

Loading content...