Enum wasmer_types::LibCall
source · [−]pub enum LibCall {
Show 31 variants
CeilF32,
CeilF64,
FloorF32,
FloorF64,
NearestF32,
NearestF64,
TruncF32,
TruncF64,
Memory32Size,
ImportedMemory32Size,
TableCopy,
TableInit,
TableFill,
TableSize,
ImportedTableSize,
TableGet,
ImportedTableGet,
TableSet,
ImportedTableSet,
TableGrow,
ImportedTableGrow,
FuncRef,
ElemDrop,
Memory32Copy,
ImportedMemory32Copy,
Memory32Fill,
ImportedMemory32Fill,
Memory32Init,
DataDrop,
RaiseTrap,
Probestack,
}
Expand description
The name of a runtime library routine.
This list is likely to grow over time.
Variants
CeilF32
ceil.f32
CeilF64
ceil.f64
FloorF32
floor.f32
FloorF64
floor.f64
NearestF32
nearest.f32
NearestF64
nearest.f64
TruncF32
trunc.f32
TruncF64
trunc.f64
Memory32Size
memory.size for local functions
ImportedMemory32Size
memory.size for imported functions
TableCopy
table.copy
TableInit
table.init
TableFill
table.fill
TableSize
table.size for local tables
ImportedTableSize
table.size for imported tables
TableGet
table.get for local tables
ImportedTableGet
table.get for imported tables
TableSet
table.set for local tables
ImportedTableSet
table.set for imported tables
TableGrow
table.grow for local tables
ImportedTableGrow
table.grow for imported tables
FuncRef
ref.func
ElemDrop
elem.drop
Memory32Copy
memory.copy for local memories
ImportedMemory32Copy
memory.copy for imported memories
Memory32Fill
memory.fill for local memories
ImportedMemory32Fill
memory.fill for imported memories
Memory32Init
memory.init
DataDrop
data.drop
RaiseTrap
A custom trap
Probestack
probe for stack overflow. These are emitted for functions which need
when the enable_probestack
setting is true.
Implementations
sourceimpl LibCall
impl LibCall
sourcepub fn to_function_name(&self) -> &str
pub fn to_function_name(&self) -> &str
Return the function name associated to the libcall.
Trait Implementations
sourceimpl Archive for LibCall
impl Archive for LibCall
sourceimpl<'de> Deserialize<'de> for LibCall
impl<'de> Deserialize<'de> for LibCall
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl IntoEnumIterator for LibCall
impl IntoEnumIterator for LibCall
type Iterator = LibCallEnumIterator
type Iterator = LibCallEnumIterator
Type of the iterator over the variants.
sourceconst VARIANT_COUNT: usize = 31usize
const VARIANT_COUNT: usize = 31usize
Number of variants.
sourcefn into_enum_iter() -> Self::Iterator
fn into_enum_iter() -> Self::Iterator
Returns an iterator over the variants. Read more
sourceimpl MemoryUsage for LibCall
impl MemoryUsage for LibCall
sourcefn size_of_val(&self, visited: &mut dyn MemoryUsageTracker) -> usize
fn size_of_val(&self, visited: &mut dyn MemoryUsageTracker) -> usize
Returns the size of the referenced value in bytes. Read more
impl Copy for LibCall
impl Eq for LibCall
impl StructuralEq for LibCall
impl StructuralPartialEq for LibCall
Auto Trait Implementations
impl RefUnwindSafe for LibCall
impl Send for LibCall
impl Sync for LibCall
impl Unpin for LibCall
impl UnwindSafe for LibCall
Blanket Implementations
sourceimpl<T> ArchivePointee for T
impl<T> ArchivePointee for T
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
sourcefn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
sourceimpl<T> ArchiveUnsized for T where
T: Archive,
impl<T> ArchiveUnsized for T where
T: Archive,
type Archived = <T as Archive>::Archived
type Archived = <T as Archive>::Archived
The archived counterpart of this type. Unlike Archive
, it may be unsized. Read more
type MetadataResolver = ()
type MetadataResolver = ()
The resolver for the metadata of this type. Read more
sourceunsafe fn resolve_metadata(
&self,
usize,
<T as ArchiveUnsized>::MetadataResolver,
*mut <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata
)
unsafe fn resolve_metadata(
&self,
usize,
<T as ArchiveUnsized>::MetadataResolver,
*mut <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata
)
Creates the archived version of the metadata for this value at the given position and writes it to the given output. Read more
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.