pub enum WasmExportError {
Empty,
InvalidName,
UnknownKind,
}Expand description
Error returned when export metadata is invalid.
Variants§
Empty
The supplied value was empty.
InvalidName
The supplied name contains unsupported characters.
UnknownKind
The supplied export kind label was not recognized.
Trait Implementations§
Source§impl Clone for WasmExportError
impl Clone for WasmExportError
Source§fn clone(&self) -> WasmExportError
fn clone(&self) -> WasmExportError
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 WasmExportError
impl Debug for WasmExportError
Source§impl Display for WasmExportError
impl Display for WasmExportError
Source§impl Error for WasmExportError
impl Error for WasmExportError
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 WasmExportError
impl Hash for WasmExportError
Source§impl Ord for WasmExportError
impl Ord for WasmExportError
Source§fn cmp(&self, other: &WasmExportError) -> Ordering
fn cmp(&self, other: &WasmExportError) -> 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 WasmExportError
impl PartialEq for WasmExportError
Source§fn eq(&self, other: &WasmExportError) -> bool
fn eq(&self, other: &WasmExportError) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for WasmExportError
impl PartialOrd for WasmExportError
impl Copy for WasmExportError
impl Eq for WasmExportError
impl StructuralPartialEq for WasmExportError
Auto Trait Implementations§
impl Freeze for WasmExportError
impl RefUnwindSafe for WasmExportError
impl Send for WasmExportError
impl Sync for WasmExportError
impl Unpin for WasmExportError
impl UnsafeUnpin for WasmExportError
impl UnwindSafe for WasmExportError
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