Struct wasmtime_environ::wasmparser::GlobalType
pub struct GlobalType {
pub content_type: ValType,
pub mutable: bool,
pub shared: bool,
}
Expand description
Represents a global’s type.
Fields§
§content_type: ValType
The global’s type.
mutable: bool
Whether or not the global is mutable.
Whether or not the global is shared.
Trait Implementations§
§impl Clone for GlobalType
impl Clone for GlobalType
§fn clone(&self) -> GlobalType
fn clone(&self) -> GlobalType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for GlobalType
impl Debug for GlobalType
§impl<'a> FromReader<'a> for GlobalType
impl<'a> FromReader<'a> for GlobalType
§fn from_reader(
reader: &mut BinaryReader<'a>,
) -> Result<GlobalType, BinaryReaderError>
fn from_reader( reader: &mut BinaryReader<'a>, ) -> Result<GlobalType, BinaryReaderError>
Attempts to read
Self
from the provided binary reader, returning an
error if it is unable to do so.§impl Hash for GlobalType
impl Hash for GlobalType
§impl PartialEq for GlobalType
impl PartialEq for GlobalType
§fn eq(&self, other: &GlobalType) -> bool
fn eq(&self, other: &GlobalType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl TryFrom<GlobalType> for GlobalType
impl TryFrom<GlobalType> for GlobalType
§fn try_from(
global_ty: GlobalType,
) -> Result<GlobalType, <GlobalType as TryFrom<GlobalType>>::Error>
fn try_from( global_ty: GlobalType, ) -> Result<GlobalType, <GlobalType as TryFrom<GlobalType>>::Error>
Performs the conversion.
impl Copy for GlobalType
impl Eq for GlobalType
impl StructuralPartialEq for GlobalType
Auto Trait Implementations§
impl Freeze for GlobalType
impl RefUnwindSafe for GlobalType
impl Send for GlobalType
impl Sync for GlobalType
impl Unpin for GlobalType
impl UnwindSafe for GlobalType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.