pub struct Limits {
pub min: u32,
pub max: Option<u32>,
}
Fields§
§min: u32
§max: Option<u32>
Implementations§
source§impl Limits
impl Limits
pub const MAX_MEM_PAGES: u32 = 65_536u32
pub const MAX_MEM_BYTES: u32 = 4_294_967_295u32
pub const MEM_PAGE_SIZE: u32 = 65_536u32
Trait Implementations§
source§impl PartialEq for Limits
impl PartialEq for Limits
source§impl WasmReadable for Limits
impl WasmReadable for Limits
source§fn read(wasm: &mut WasmReader<'_>) -> Result<Self>
fn read(wasm: &mut WasmReader<'_>) -> Result<Self>
source§fn read_unvalidated(wasm: &mut WasmReader<'_>) -> Self
fn read_unvalidated(wasm: &mut WasmReader<'_>) -> Self
impl Copy for Limits
impl Eq for Limits
impl StructuralPartialEq for Limits
Auto Trait Implementations§
impl RefUnwindSafe for Limits
impl Send for Limits
impl Sync for Limits
impl Unpin for Limits
impl UnwindSafe for Limits
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