[][src]Enum lucet_module_data::Global

pub enum Global<'a> {
    Def(GlobalDef),
    Import {
        module: &'a str,
        field: &'a str,
    },
}

A WebAssembly global is either defined locally, or is defined in relation to a field of another WebAssembly module.

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 OwnedGlobal.

Variants

Import

Fields of Import

module: &'a strfield: &'a str

Trait Implementations

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

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

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

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

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

Auto Trait Implementations

impl<'a> Send for Global<'a>

impl<'a> Sync for Global<'a>

impl<'a> Unpin for Global<'a>

impl<'a> UnwindSafe for Global<'a>

impl<'a> RefUnwindSafe for Global<'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