wasmer_types::entity::packed_option

Trait ReservedValue

Source
pub trait ReservedValue {
    // Required methods
    fn reserved_value() -> Self;
    fn is_reserved_value(&self) -> bool;
}
Expand description

Types that have a reserved value which can’t be created any other way.

Required Methods§

Source

fn reserved_value() -> Self

Create an instance of the reserved value.

Source

fn is_reserved_value(&self) -> bool

Checks whether value is the reserved one.

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.

Implementors§