pub enum WasmSectionError {
Empty,
UnknownId,
UnknownName,
}Expand description
Error returned when a WebAssembly section label or ID is invalid.
Variants§
Empty
The supplied section label was empty.
UnknownId
The supplied section ID is not assigned by the core WebAssembly format.
UnknownName
The supplied section label was not recognized.
Trait Implementations§
Source§impl Clone for WasmSectionError
impl Clone for WasmSectionError
Source§fn clone(&self) -> WasmSectionError
fn clone(&self) -> WasmSectionError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WasmSectionError
impl Debug for WasmSectionError
Source§impl Display for WasmSectionError
impl Display for WasmSectionError
Source§impl Error for WasmSectionError
impl Error for WasmSectionError
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 Hash for WasmSectionError
impl Hash for WasmSectionError
Source§impl Ord for WasmSectionError
impl Ord for WasmSectionError
Source§fn cmp(&self, other: &WasmSectionError) -> Ordering
fn cmp(&self, other: &WasmSectionError) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for WasmSectionError
impl PartialEq for WasmSectionError
Source§fn eq(&self, other: &WasmSectionError) -> bool
fn eq(&self, other: &WasmSectionError) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for WasmSectionError
impl PartialOrd for WasmSectionError
impl Copy for WasmSectionError
impl Eq for WasmSectionError
impl StructuralPartialEq for WasmSectionError
Auto Trait Implementations§
impl Freeze for WasmSectionError
impl RefUnwindSafe for WasmSectionError
impl Send for WasmSectionError
impl Sync for WasmSectionError
impl Unpin for WasmSectionError
impl UnsafeUnpin for WasmSectionError
impl UnwindSafe for WasmSectionError
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