Struct cranelift_wasm::Memory [−][src]
pub struct Memory {
pub minimum: u64,
pub maximum: Option<u64>,
pub shared: bool,
pub memory64: bool,
}
Expand description
WebAssembly linear memory.
Fields
minimum: u64
The minimum number of pages in the memory.
maximum: Option<u64>
The maximum number of pages in the memory.
Whether the memory may be shared between multiple threads.
memory64: bool
Whether or not this is a 64-bit memory
Trait Implementations
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Memory, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Memory, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Memory
impl UnwindSafe for Memory
Blanket Implementations
Mutably borrows from an owned value. Read more