Enum wasmedge_types::Mutability
source · pub enum Mutability {
Const,
Var,
}
Expand description
Defines the mutability property of WasmEdge Global variables.
Mutability
determines the mutability property of a WasmEdge Global variable is either mutable or immutable.
Variants§
Trait Implementations§
source§impl Clone for Mutability
impl Clone for Mutability
source§fn clone(&self) -> Mutability
fn clone(&self) -> Mutability
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 moresource§impl Debug for Mutability
impl Debug for Mutability
source§impl From<Mutability> for i32
impl From<Mutability> for i32
source§fn from(value: Mutability) -> Self
fn from(value: Mutability) -> Self
Converts to this type from the input type.
source§impl From<Mutability> for u32
impl From<Mutability> for u32
source§fn from(value: Mutability) -> Self
fn from(value: Mutability) -> Self
Converts to this type from the input type.
source§impl From<i32> for Mutability
impl From<i32> for Mutability
source§impl From<u32> for Mutability
impl From<u32> for Mutability
source§impl PartialEq for Mutability
impl PartialEq for Mutability
source§fn eq(&self, other: &Mutability) -> bool
fn eq(&self, other: &Mutability) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for Mutability
impl Eq for Mutability
impl StructuralEq for Mutability
impl StructuralPartialEq for Mutability
Auto Trait Implementations§
impl RefUnwindSafe for Mutability
impl Send for Mutability
impl Sync for Mutability
impl Unpin for Mutability
impl UnwindSafe for Mutability
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