Struct wast::core::GlobalType
source · [−]Expand description
Type for a global
in a wasm module
Fields
ty: ValType<'a>
The element type of this global
mutable: bool
Whether or not the global is mutable or not.
Trait Implementations
sourceimpl<'a> Clone for GlobalType<'a>
impl<'a> Clone for GlobalType<'a>
sourcefn clone(&self) -> GlobalType<'a>
fn clone(&self) -> GlobalType<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a> Debug for GlobalType<'a>
impl<'a> Debug for GlobalType<'a>
sourceimpl From<GlobalType<'_>> for GlobalType
impl From<GlobalType<'_>> for GlobalType
sourcefn from(ty: GlobalType<'_>) -> Self
fn from(ty: GlobalType<'_>) -> Self
Performs the conversion.
sourceimpl<'a> Hash for GlobalType<'a>
impl<'a> Hash for GlobalType<'a>
sourceimpl<'a> Parse<'a> for GlobalType<'a>
impl<'a> Parse<'a> for GlobalType<'a>
sourceimpl<'a> PartialEq<GlobalType<'a>> for GlobalType<'a>
impl<'a> PartialEq<GlobalType<'a>> for GlobalType<'a>
sourcefn eq(&self, other: &GlobalType<'a>) -> bool
fn eq(&self, other: &GlobalType<'a>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &GlobalType<'a>) -> bool
fn ne(&self, other: &GlobalType<'a>) -> bool
This method tests for !=
.
impl<'a> Copy for GlobalType<'a>
impl<'a> Eq for GlobalType<'a>
impl<'a> StructuralEq for GlobalType<'a>
impl<'a> StructuralPartialEq for GlobalType<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for GlobalType<'a>
impl<'a> Send for GlobalType<'a>
impl<'a> Sync for GlobalType<'a>
impl<'a> Unpin for GlobalType<'a>
impl<'a> UnwindSafe for GlobalType<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more