[][src]Struct lucet_module::owned::OwnedGlobalSpec

pub struct OwnedGlobalSpec { /* fields omitted */ }

A variant of GlobalSpec with owned strings throughout.

This type is useful when directly building up a value to be serialized.

Methods

impl OwnedGlobalSpec[src]

pub fn new(global: OwnedGlobal, export_names: Vec<String>) -> Self[src]

pub fn new_def(init_val: i64, export_names: Vec<String>) -> Self[src]

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

pub fn new_import(
    module: String,
    field: String,
    export_names: Vec<String>
) -> Self
[src]

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

pub fn to_ref<'a>(&'a self) -> GlobalSpec<'a>[src]

Create a GlobalSpec backed by the values in this OwnedGlobalSpec.

Auto Trait Implementations

Blanket Implementations

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

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

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> Same<T> for T

type Output = T

Should always be Self