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<LibCall, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<LibCall, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<__D> Deserialize<LibCall, __D> for <LibCall as Archive>::Archived where
__D: Fallible + ?Sized,
impl<__D> Deserialize<LibCall, __D> for <LibCall as Archive>::Archived where
__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>
Deserializes using the given deserializer
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() -> <LibCall as IntoEnumIterator>::Iterator
fn into_enum_iter() -> <LibCall as IntoEnumIterator>::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
sourceimpl Serialize for LibCall
impl Serialize for LibCall
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. 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.
fn 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.
impl<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
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
)
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
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,
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>
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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
impl<T, S> SerializeUnsized<S> for T where
T: Serialize<S>,
S: Serializer + ?Sized,
impl<T, S> SerializeUnsized<S> for T where
T: Serialize<S>,
S: Serializer + ?Sized,
fn serialize_unsized(
&self,
serializer: &mut S
) -> Result<usize, <S as Fallible>::Error>
fn serialize_unsized(
&self,
serializer: &mut S
) -> Result<usize, <S as Fallible>::Error>
Writes the object and returns the position of the archived type.
fn serialize_metadata(&self, &mut S) -> Result<(), <S as Fallible>::Error>
fn serialize_metadata(&self, &mut S) -> Result<(), <S as Fallible>::Error>
Serializes the metadata for the given type.
sourceimpl<T> Upcastable for T where
T: 'static + Any + Send + Sync,
impl<T> Upcastable for T where
T: 'static + Any + Send + Sync,
sourcefn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
sourcefn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref