[−][src]Struct lucet_module::GlobalSpec
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]
module: &'a str,
field: &'a str,
export_names: Vec<&'a str>
) -> Self
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]
fn clone(&self) -> GlobalSpec<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> PartialEq<GlobalSpec<'a>> for GlobalSpec<'a>
[src]
fn eq(&self, other: &GlobalSpec<'a>) -> bool
[src]
fn ne(&self, other: &GlobalSpec<'a>) -> bool
[src]
impl<'a> Debug for GlobalSpec<'a>
[src]
impl<'a> StructuralPartialEq for GlobalSpec<'a>
[src]
impl<'a> Serialize for GlobalSpec<'a>
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de: 'a, 'a> Deserialize<'de> for GlobalSpec<'a>
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
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]
U: From<T>,
impl<T> From<T> for T
[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> Same<T> for T
type Output = T
Should always be Self