[][src]Struct lucet_module_data::GlobalSpec

pub struct GlobalSpec<'a> { /* fields omitted */ }

A WebAssembly global along with its export specification.

The lifetime parameter exists to support zero-copy deserialization for the &str fields at the leaves of the structure. For a variant with owned types at the leaves, see OwnedGlobalSpec.

Methods

impl<'a> GlobalSpec<'a>[src]

pub fn new(global: Global<'a>, export_names: Vec<&'a str>) -> Self[src]

pub fn new_def(init_val: i64, export_names: Vec<&'a str>) -> Self[src]

Create a new global definition with an initial value and export names.

pub fn new_import(
    module: &'a str,
    field: &'a str,
    export_names: Vec<&'a str>
) -> Self
[src]

Create a new global import definition with a module and field name, and export names.

pub fn global(&self) -> &Global[src]

pub fn export_names(&self) -> &[&str][src]

pub fn is_internal(&self) -> bool[src]

Trait Implementations

impl<'a> Clone for GlobalSpec<'a>[src]

impl<'a> PartialEq<GlobalSpec<'a>> for GlobalSpec<'a>[src]

impl<'a> Debug for GlobalSpec<'a>[src]

impl<'a> Serialize for GlobalSpec<'a>[src]

impl<'de: 'a, 'a> Deserialize<'de> for GlobalSpec<'a>[src]

Auto Trait Implementations

impl<'a> Send for GlobalSpec<'a>

impl<'a> Sync for GlobalSpec<'a>

impl<'a> Unpin for GlobalSpec<'a>

impl<'a> UnwindSafe for GlobalSpec<'a>

impl<'a> RefUnwindSafe for GlobalSpec<'a>

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self