[−][src]Struct lucet_module::owned::OwnedGlobalSpec
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]
module: String,
field: String,
export_names: Vec<String>
) -> Self
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
impl RefUnwindSafe for OwnedGlobalSpec
impl Send for OwnedGlobalSpec
impl Sync for OwnedGlobalSpec
impl Unpin for OwnedGlobalSpec
impl UnwindSafe for OwnedGlobalSpec
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> 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, 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>,