wasmtime_environ::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.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl ReservedValue for AdapterId

source§

impl ReservedValue for AdapterModuleId

source§

impl ReservedValue for InstanceId

source§

impl ReservedValue for MemoryId

source§

impl ReservedValue for PostReturnId

source§

impl ReservedValue for ReallocId

source§

impl ReservedValue for ComponentFuncIndex

source§

impl ReservedValue for ComponentIndex

source§

impl ReservedValue for ComponentInstanceIndex

source§

impl ReservedValue for ComponentTypeIndex

source§

impl ReservedValue for ComponentUpvarIndex

source§

impl ReservedValue for DefinedResourceIndex

source§

impl ReservedValue for ExportIndex

source§

impl ReservedValue for ImportIndex

source§

impl ReservedValue for LoweredIndex

source§

impl ReservedValue for ModuleIndex

source§

impl ReservedValue for ModuleInstanceIndex

source§

impl ReservedValue for ModuleUpvarIndex

source§

impl ReservedValue for ResourceIndex

source§

impl ReservedValue for RuntimeComponentInstanceIndex

source§

impl ReservedValue for RuntimeImportIndex

source§

impl ReservedValue for RuntimeInstanceIndex

source§

impl ReservedValue for RuntimeMemoryIndex

source§

impl ReservedValue for RuntimePostReturnIndex

source§

impl ReservedValue for RuntimeReallocIndex

source§

impl ReservedValue for StaticComponentIndex

source§

impl ReservedValue for TrampolineIndex

source§

impl ReservedValue for TypeComponentIndex

source§

impl ReservedValue for TypeComponentInstanceIndex

source§

impl ReservedValue for TypeEnumIndex

source§

impl ReservedValue for TypeFlagsIndex

source§

impl ReservedValue for TypeFuncIndex

source§

impl ReservedValue for TypeListIndex

source§

impl ReservedValue for TypeModuleIndex

source§

impl ReservedValue for TypeOptionIndex

source§

impl ReservedValue for TypeRecordIndex

source§

impl ReservedValue for TypeResourceTableIndex

source§

impl ReservedValue for TypeResultIndex

source§

impl ReservedValue for TypeTupleIndex

source§

impl ReservedValue for TypeVariantIndex

source§

impl ReservedValue for DataIndex

source§

impl ReservedValue for DefinedFuncIndex

source§

impl ReservedValue for DefinedGlobalIndex

source§

impl ReservedValue for DefinedMemoryIndex

source§

impl ReservedValue for DefinedTableIndex

source§

impl ReservedValue for ElemIndex

source§

impl ReservedValue for EngineInternedRecGroupIndex

source§

impl ReservedValue for FuncIndex

source§

impl ReservedValue for FuncRefIndex

source§

impl ReservedValue for GlobalIndex

source§

impl ReservedValue for MemoryIndex

source§

impl ReservedValue for ModuleInternedRecGroupIndex

source§

impl ReservedValue for ModuleInternedTypeIndex

source§

impl ReservedValue for OwnedMemoryIndex

source§

impl ReservedValue for RecGroupRelativeTypeIndex

source§

impl ReservedValue for StaticModuleIndex

source§

impl ReservedValue for TableIndex

source§

impl ReservedValue for TagIndex

source§

impl ReservedValue for TypeIndex

source§

impl ReservedValue for VMSharedTypeIndex