Struct wasmtime_environ::FunctionType
source · [−]pub struct FunctionType {
pub signature: SignatureIndex,
pub anyfunc: AnyfuncIndex,
}
Expand description
Type information about functions in a wasm module.
Fields
signature: SignatureIndex
The type of this function, indexed into the module-wide type tables for a module compilation.
anyfunc: AnyfuncIndex
The index into the anyfunc table, if present. Note that this is
reserved_value()
if the function does not escape from a module.
Implementations
sourceimpl FunctionType
impl FunctionType
sourcepub fn is_escaping(&self) -> bool
pub fn is_escaping(&self) -> bool
Returns whether this function’s type is one that “escapes” the current
module, meaning that the function is exported, used in ref.func
, used
in a table, etc.
Trait Implementations
sourceimpl Debug for FunctionType
impl Debug for FunctionType
sourceimpl<'de> Deserialize<'de> for FunctionType
impl<'de> Deserialize<'de> for FunctionType
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 Serialize for FunctionType
impl Serialize for FunctionType
Auto Trait Implementations
impl RefUnwindSafe for FunctionType
impl Send for FunctionType
impl Sync for FunctionType
impl Unpin for FunctionType
impl UnwindSafe for FunctionType
Blanket Implementations
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