cranelift_codegen::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§

Source§

impl ReservedValue for Block

Source§

impl ReservedValue for Constant

Source§

impl ReservedValue for DynamicStackSlot

Source§

impl ReservedValue for DynamicType

Source§

impl ReservedValue for FuncRef

Source§

impl ReservedValue for GlobalValue

Source§

impl ReservedValue for Immediate

Source§

impl ReservedValue for Inst

Source§

impl ReservedValue for JumpTable

Source§

impl ReservedValue for MemoryType

Source§

impl ReservedValue for SigRef

Source§

impl ReservedValue for StackSlot

Source§

impl ReservedValue for UserExternalNameRef

Source§

impl ReservedValue for Value

Source§

impl ReservedValue for ValueLabel

Source§

impl ReservedValue for Loop

Source§

impl ReservedValue for MachLabel