[−][src]Struct lucet_module::FunctionMetadata
Information about the corresponding function.
This is split from but closely related to a FunctionSpec
. The distinction is largely for
serialization/deserialization simplicity, as FunctionSpec
contains fields that need
cooperation from a loader, with manual layout and serialization as a result.
FunctionMetadata
is the remainder of fields that can be automatically
serialized/deserialied and are small enough copying isn't a large concern.
Fields
signature: UniqueSignatureIndex
name: Option<&'a str>
the "name" field is some human-friendly name, not necessarily the same as used to reach this function (through an export, for example), and may not even indicate that a function is exported at all. TODO: at some point when possible, this field ought to be set from the names section of a wasm module. At the moment that information is lost at parse time.
Trait Implementations
impl<'a> Clone for FunctionMetadata<'a>
[src]
fn clone(&self) -> FunctionMetadata<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Debug for FunctionMetadata<'a>
[src]
impl<'de: 'a, 'a> Deserialize<'de> for FunctionMetadata<'a>
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<'a> Serialize for FunctionMetadata<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for FunctionMetadata<'a>
impl<'a> Send for FunctionMetadata<'a>
impl<'a> Sync for FunctionMetadata<'a>
impl<'a> Unpin for FunctionMetadata<'a>
impl<'a> UnwindSafe for FunctionMetadata<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,