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<__D> Deserialize<LibCall, __D> for <LibCall as Archive>::Archivedwhere
__D: Fallible + ?Sized,
impl<__D> Deserialize<LibCall, __D> for <LibCall as Archive>::Archivedwhere
__D: Fallible + ?Sized,
sourcefn deserialize(
&self,
deserializer: &mut __D
) -> Result<LibCall, <__D as Fallible>::Error>
fn deserialize(
&self,
deserializer: &mut __D
) -> Result<LibCall, <__D as Fallible>::Error>
sourceimpl IntoEnumIterator for LibCall
impl IntoEnumIterator for LibCall
type Iterator = LibCallEnumIterator
type Iterator = LibCallEnumIterator
sourceconst VARIANT_COUNT: usize = 31usize
const VARIANT_COUNT: usize = 31usize
sourcefn into_enum_iter() -> <LibCall as IntoEnumIterator>::Iterator
fn into_enum_iter() -> <LibCall as IntoEnumIterator>::Iterator
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
impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
type ArchivedMetadata = ()
type ArchivedMetadata = ()
fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
impl<T> ArchiveUnsized for Twhere
T: Archive,
impl<T> ArchiveUnsized for Twhere
T: Archive,
type Archived = <T as Archive>::Archived
type Archived = <T as Archive>::Archived
Archive
, it may be unsized. Read moretype MetadataResolver = ()
type MetadataResolver = ()
unsafe 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
)
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.