Struct Mutability
Represents the mutability of a WebAssembly global value.
Implements
IEquatable<Mutability>
Namespace: Wasmtime
Assembly: Wasmtime.Dotnet.dll
Syntax
public readonly struct Mutability
Fields
| Improve this Doc View SourceImmutable
The global value is immutable (i.e. constant).
Declaration
public static readonly Mutability Immutable
Field Value
Type | Description |
---|---|
Mutability |
Mutable
The global value is mutable.
Declaration
public static readonly Mutability Mutable
Field Value
Type | Description |
---|---|
Mutability |
Methods
| Improve this Doc View SourceEquals(Nullable<Object>)
Declaration
public override readonly bool Equals(object? obj)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.Object> | obj |
Returns
Type | Description |
---|---|
System.Boolean |
Equals(Mutability)
Declaration
public readonly bool Equals(Mutability other)
Parameters
Type | Name | Description |
---|---|---|
Mutability | other |
Returns
Type | Description |
---|---|
System.Boolean |
GetHashCode()
Declaration
public override readonly int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Operators
| Improve this Doc View SourceEquality(Mutability, Mutability)
Compare a to b and return true if they are equal
Declaration
public static bool operator ==(Mutability a, Mutability b)
Parameters
Type | Name | Description |
---|---|---|
Mutability | a | First item to compare |
Mutability | b | Second item to compare |
Returns
Type | Description |
---|---|
System.Boolean |
Inequality(Mutability, Mutability)
Compare a to b and return true if they are not equal
Declaration
public static bool operator !=(Mutability a, Mutability b)
Parameters
Type | Name | Description |
---|---|---|
Mutability | a | First item to compare |
Mutability | b | Second item to compare |
Returns
Type | Description |
---|---|
System.Boolean |
Implements
IEquatable<>