#[repr(C)]pub struct wasm_limits_t {
pub min: u32,
pub max: u32,
}
Expand description
Utility type representing minimum and maximum limitations for Wasm types.
§Examples
This could represent the minimum and maximum number of pages for a Wasm MemoryType
.
Fields§
§min: u32
The minimum limit for the Wasm type.
max: u32
The maximum limit for the Wasm type.
Trait Implementations§
Source§impl Clone for wasm_limits_t
impl Clone for wasm_limits_t
Source§fn clone(&self) -> wasm_limits_t
fn clone(&self) -> wasm_limits_t
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for wasm_limits_t
impl RefUnwindSafe for wasm_limits_t
impl Send for wasm_limits_t
impl Sync for wasm_limits_t
impl Unpin for wasm_limits_t
impl UnwindSafe for wasm_limits_t
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