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 function_pointer(self) -> usize
pub fn function_pointer(self) -> usize
The function pointer to a 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<'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
const VARIANT_COUNT: usize
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
impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<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,
pub fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
pub fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer
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,
sourcepub fn equivalent(&self, key: &K) -> bool
pub fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more