LibCall

Enum LibCall 

#[repr(u16)]
pub enum LibCall {
Show 89 variants CeilF32 = 0, CeilF64 = 1, FloorF32 = 2, FloorF64 = 3, NearestF32 = 4, NearestF64 = 5, SqrtF32 = 6, SqrtF64 = 7, TruncF32 = 8, TruncF64 = 9, Memory32Size = 10, ImportedMemory32Size = 11, TableCopy = 12, TableInit = 13, TableFill = 14, TableSize = 15, ImportedTableSize = 16, TableGet = 17, ImportedTableGet = 18, TableSet = 19, ImportedTableSet = 20, TableGrow = 21, ImportedTableGrow = 22, FuncRef = 23, ElemDrop = 24, Memory32Copy = 25, ImportedMemory32Copy = 26, Memory32Fill = 27, ImportedMemory32Fill = 28, Memory32Init = 29, DataDrop = 30, RaiseTrap = 31, Probestack = 32, Memory32AtomicWait32 = 33, ImportedMemory32AtomicWait32 = 34, Memory32AtomicWait64 = 35, ImportedMemory32AtomicWait64 = 36, Memory32AtomicNotify = 37, ImportedMemory32AtomicNotify = 38, Throw = 39, AllocException = 40, ReadExnRef = 41, LibunwindExceptionIntoExnRef = 42, EHPersonality = 43, EHPersonality2 = 44, DebugUsize = 45, DebugStr = 46, Addsf3 = 47, Adddf3 = 48, Subsf3 = 49, Subdf3 = 50, Mulsf3 = 51, Muldf3 = 52, Divsf3 = 53, Divdf3 = 54, Negsf2 = 55, Negdf2 = 56, Extendsfdf2 = 57, Truncdfsf2 = 58, Fixsfsi = 59, Fixdfsi = 60, Fixsfdi = 61, Fixdfdi = 62, Fixunssfsi = 63, Fixunsdfsi = 64, Fixunssfdi = 65, Fixunsdfdi = 66, Floatsisf = 67, Floatsidf = 68, Floatdisf = 69, Floatdidf = 70, Floatunsisf = 71, Floatunsidf = 72, Floatundisf = 73, Floatundidf = 74, Unordsf2 = 75, Unorddf2 = 76, Eqsf2 = 77, Eqdf2 = 78, Nesf2 = 79, Nedf2 = 80, Gesf2 = 81, Gedf2 = 82, Ltsf2 = 83, Ltdf2 = 84, Lesf2 = 85, Ledf2 = 86, Gtsf2 = 87, Gtdf2 = 88,
}
Expand description

The name of a runtime library routine.

This list is likely to grow over time.

Variants§

§

CeilF32 = 0

ceil.f32

§

CeilF64 = 1

ceil.f64

§

FloorF32 = 2

floor.f32

§

FloorF64 = 3

floor.f64

§

NearestF32 = 4

nearest.f32

§

NearestF64 = 5

nearest.f64

§

SqrtF32 = 6

sqrt.f32

§

SqrtF64 = 7

sqrt.f64

§

TruncF32 = 8

trunc.f32

§

TruncF64 = 9

trunc.f64

§

Memory32Size = 10

memory.size for local functions

§

ImportedMemory32Size = 11

memory.size for imported functions

§

TableCopy = 12

table.copy

§

TableInit = 13

table.init

§

TableFill = 14

table.fill

§

TableSize = 15

table.size for local tables

§

ImportedTableSize = 16

table.size for imported tables

§

TableGet = 17

table.get for local tables

§

ImportedTableGet = 18

table.get for imported tables

§

TableSet = 19

table.set for local tables

§

ImportedTableSet = 20

table.set for imported tables

§

TableGrow = 21

table.grow for local tables

§

ImportedTableGrow = 22

table.grow for imported tables

§

FuncRef = 23

ref.func

§

ElemDrop = 24

elem.drop

§

Memory32Copy = 25

memory.copy for local memories

§

ImportedMemory32Copy = 26

memory.copy for imported memories

§

Memory32Fill = 27

memory.fill for local memories

§

ImportedMemory32Fill = 28

memory.fill for imported memories

§

Memory32Init = 29

memory.init

§

DataDrop = 30

data.drop

§

RaiseTrap = 31

A custom trap

§

Probestack = 32

probe for stack overflow. These are emitted for functions which need when the enable_probestack setting is true.

§

Memory32AtomicWait32 = 33

memory.atomic.wait32 for local memories

§

ImportedMemory32AtomicWait32 = 34

memory.atomic.wait32 for imported memories

§

Memory32AtomicWait64 = 35

memory.atomic.wait64 for local memories

§

ImportedMemory32AtomicWait64 = 36

memory.atomic.wait64 for imported memories

§

Memory32AtomicNotify = 37

memory.atomic.notify for local memories

§

ImportedMemory32AtomicNotify = 38

memory.atomic.notify for imported memories

§

Throw = 39

throw

§

AllocException = 40

allocate exception object and get an exnref for it

§

ReadExnRef = 41

Get the values buffer pointer out of an exnref

§

LibunwindExceptionIntoExnRef = 42

Given a caught native exception pointer, get the exnref and delete the exception itself

§

EHPersonality = 43

The personality function

§

EHPersonality2 = 44

The second stage of the EH personality function

§

DebugUsize = 45

debug_usize

§

DebugStr = 46

debug_str

§

Addsf3 = 47

__addsf3

§

Adddf3 = 48

__adddf3

§

Subsf3 = 49

__subsf3

§

Subdf3 = 50

__subdf3

§

Mulsf3 = 51

__mulsf3

§

Muldf3 = 52

__muldf3

§

Divsf3 = 53

__divsf3

§

Divdf3 = 54

__divdf3

§

Negsf2 = 55

__negsf2

§

Negdf2 = 56

__negdf2

§

Extendsfdf2 = 57

__extendsfdf2

§

Truncdfsf2 = 58

__truncdfsf2

§

Fixsfsi = 59

__fixsfsi

§

Fixdfsi = 60

__fixdfsi

§

Fixsfdi = 61

__fixsfdi

§

Fixdfdi = 62

__fixdfdi

§

Fixunssfsi = 63

__fixunssfsi

§

Fixunsdfsi = 64

__fixunsdfsi

§

Fixunssfdi = 65

__fixunssfdi

§

Fixunsdfdi = 66

__fixunsdfdi

§

Floatsisf = 67

__floatsisf

§

Floatsidf = 68

__floatsidf

§

Floatdisf = 69

__floatdisf

§

Floatdidf = 70

__floatdidf

§

Floatunsisf = 71

__floatunsisf

§

Floatunsidf = 72

__floatunsidf

§

Floatundisf = 73

__floatundisf

§

Floatundidf = 74

__floatundidf

§

Unordsf2 = 75

__unordsf2

§

Unorddf2 = 76

__unorddf2

§

Eqsf2 = 77

__eqsf2

§

Eqdf2 = 78

__eqdf2

§

Nesf2 = 79

__nesf2

§

Nedf2 = 80

__nedf2

§

Gesf2 = 81

__gesf2

§

Gedf2 = 82

__gedf2

§

Ltsf2 = 83

__ltsf2

§

Ltdf2 = 84

__ltdf2

§

Lesf2 = 85

__lesf2

§

Ledf2 = 86

__ledf2

§

Gtsf2 = 87

__gtsf2

§

Gtdf2 = 88

__gtdf2

Implementations§

§

impl LibCall

pub fn to_function_name(&self) -> &str

Return the function name associated to the libcall.

Trait Implementations§

§

impl Archive for LibCall

§

type Archived = ArchivedLibCall

The archived representation of this type. Read more
§

type Resolver = LibCallResolver

The resolver for this type. It must contain all the additional information from serializing needed to make the archived type from the normal type.
§

fn resolve( &self, resolver: <LibCall as Archive>::Resolver, out: Place<<LibCall as Archive>::Archived>, )

Creates the archived version of this value at the given position and writes it to the given output. Read more
§

const COPY_OPTIMIZATION: CopyOptimization<Self> = _

An optimization flag that allows the bytes of this type to be copied directly to a writer instead of calling serialize. Read more
§

impl Clone for LibCall

§

fn clone(&self) -> LibCall

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for LibCall

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for LibCall

§

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
§

impl<__D> Deserialize<LibCall, __D> for <LibCall as Archive>::Archived
where __D: Fallible + ?Sized,

§

fn deserialize( &self, deserializer: &mut __D, ) -> Result<LibCall, <__D as Fallible>::Error>

Deserializes using the given deserializer
§

impl Display for LibCall

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Hash for LibCall

§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
§

impl PartialEq<ArchivedLibCall> for LibCall

§

fn eq(&self, other: &ArchivedLibCall) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl PartialEq for LibCall

§

fn eq(&self, other: &LibCall) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl Sequence for LibCall

§

const CARDINALITY: usize

Number of values of type Self. Read more
§

fn next(&self) -> Option<LibCall>

Returns value following *self or None if this was the end. Read more
§

fn previous(&self) -> Option<LibCall>

Returns value preceding *self or None if this was the beginning. Read more
§

fn first() -> Option<LibCall>

Returns the first value of type Self. Read more
§

fn last() -> Option<LibCall>

Returns the last value of type Self. Read more
§

impl<__S> Serialize<__S> for LibCall
where __S: Fallible + ?Sized,

§

fn serialize( &self, serializer: &mut __S, ) -> Result<<LibCall as Archive>::Resolver, <__S as Fallible>::Error>

Writes the dependencies for the object and returns a resolver that can create the archived type.
§

impl Serialize for LibCall

§

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 StructuralPartialEq for LibCall

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> ArchivePointee for T

§

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.
§

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,

§

type Archived = <T as Archive>::Archived

The archived counterpart of this type. Unlike Archive, it may be unsized. Read more
§

fn archived_metadata( &self, ) -> <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata

Creates the archived version of the metadata for this value.
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
§

impl<T> LayoutRaw for T

§

fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>

Returns the layout of the type.
§

impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
where T: SharedNiching<N1, N2>, N1: Niching<T>, N2: Niching<T>,

§

unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool

Returns whether the given value has been niched. Read more
§

fn resolve_niched(out: Place<NichedOption<T, N1>>)

Writes data to out indicating that a T is niched.
§

impl<T> Pointee for T

§

type Metadata = ()

The metadata type for pointers and references to this type.
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
§

impl<T, S> SerializeUnsized<S> for T
where T: Serialize<S>, S: Fallible + Writer + ?Sized,

§

fn serialize_unsized( &self, serializer: &mut S, ) -> Result<usize, <S as Fallible>::Error>

Writes the object and returns the position of the archived type.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,