#[non_exhaustive]pub enum TableError {
OutOfSystemMemory,
MinimumSizeOverflow,
MaximumSizeOverflow,
ResourceLimiterDeniedAllocation,
GrowOutOfBounds {
maximum: u64,
current: u64,
delta: u64,
},
ElementTypeMismatch {
expected: ValType,
actual: ValType,
},
AccessOutOfBounds {
current: u64,
index: u64,
},
CopyOutOfBounds,
InvalidSubtype {
ty: TableType,
other: TableType,
},
TooManyTables,
}Expand description
Errors that may occur upon operating with table entities.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
OutOfSystemMemory
Tried to allocate more virtual memory than technically possible.
MinimumSizeOverflow
The minimum size of the table type overflows the system index type.
MaximumSizeOverflow
The maximum size of the table type overflows the system index type.
ResourceLimiterDeniedAllocation
If a resource limiter denied allocation or growth of a linear memory.
GrowOutOfBounds
Occurs when growing a table out of its set bounds.
Fields
ElementTypeMismatch
Occurs when operating with a Table and mismatching element types.
Fields
AccessOutOfBounds
Occurs when accessing the table out of bounds.
Fields
CopyOutOfBounds
Occur when coping elements of tables out of bounds.
InvalidSubtype
Occurs when ty is not a subtype of other.
Fields
TooManyTables
Trait Implementations§
Source§impl Debug for TableError
impl Debug for TableError
Source§impl Display for TableError
impl Display for TableError
Source§impl Error for TableError
impl Error for TableError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<TableError> for Error
impl From<TableError> for Error
Source§fn from(error: TableError) -> Self
fn from(error: TableError) -> Self
Converts to this type from the input type.
Source§impl From<TableError> for InstantiationError
impl From<TableError> for InstantiationError
Source§fn from(error: TableError) -> Self
fn from(error: TableError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TableError
impl RefUnwindSafe for TableError
impl Send for TableError
impl Sync for TableError
impl Unpin for TableError
impl UnwindSafe for TableError
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.