Struct GlobalType
pub struct GlobalType {
pub content_type: ValType,
pub mutable: bool,
pub shared: bool,
}Expand description
Represents a global’s type.
Fields§
§content_type: ValTypeThe global’s type.
mutable: boolWhether 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 duplicate 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
§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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more