pub enum ConstructionError {
MemoryInitialPagesExceedsMax {
initial: usize,
max: usize,
},
TableInitialSizeExceedsMax {
initial: usize,
max: usize,
},
}Expand description
Errors that occur during module/memory/table construction.
These are programming errors in the transpiler, not runtime Wasm traps.
Variants§
MemoryInitialPagesExceedsMax
Initial pages exceeds MAX_PAGES for memory.
TableInitialSizeExceedsMax
Initial size exceeds MAX_SIZE for table.
Trait Implementations§
Source§impl Clone for ConstructionError
impl Clone for ConstructionError
Source§fn clone(&self) -> ConstructionError
fn clone(&self) -> ConstructionError
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 moreSource§impl Debug for ConstructionError
impl Debug for ConstructionError
Source§impl From<ConstructionError> for WasmTrap
impl From<ConstructionError> for WasmTrap
Source§fn from(_: ConstructionError) -> Self
fn from(_: ConstructionError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ConstructionError
impl PartialEq for ConstructionError
impl Copy for ConstructionError
impl Eq for ConstructionError
impl StructuralPartialEq for ConstructionError
Auto Trait Implementations§
impl Freeze for ConstructionError
impl RefUnwindSafe for ConstructionError
impl Send for ConstructionError
impl Sync for ConstructionError
impl Unpin for ConstructionError
impl UnsafeUnpin for ConstructionError
impl UnwindSafe for ConstructionError
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