/// A memory's type. #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] pubstruct MemoryType { /// Minimum size, in pages, of this memory pub minimum: u64, /// Maximum size, in pages, of this memory pub maximum: Option<u64>, /// Whether or not this is a 64-bit memory. pub memory64: bool, /// Whether or not this memory is shared. pub shared: bool, /// The log base 2 of a custom page size for this memory. /// /// The default page size for Wasm memories is 64KiB, i.e. 2<sup>16</sup> or /// `65536`. /// /// After the introduction of [the custom-page-sizes /// proposal](https://github.com/WebAssembly/custom-page-sizes), Wasm can /// customize the page size. It must be a power of two that is less than or /// equal to 64KiB. Attempting to encode an invalid page size may panic. pub page_size_log2: Option<u32>,
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.