pub enum WasmTextError {
Empty,
Invalid,
UnknownMarker,
}Expand description
Error returned when WebAssembly text metadata is invalid.
Variants§
Empty
The supplied value was empty.
Invalid
The supplied value is not accepted by this crate’s conservative rules.
UnknownMarker
The supplied S-expression marker is unknown.
Trait Implementations§
Source§impl Clone for WasmTextError
impl Clone for WasmTextError
Source§fn clone(&self) -> WasmTextError
fn clone(&self) -> WasmTextError
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 WasmTextError
impl Debug for WasmTextError
Source§impl Display for WasmTextError
impl Display for WasmTextError
Source§impl Error for WasmTextError
impl Error for WasmTextError
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 WasmTextError
impl Hash for WasmTextError
Source§impl Ord for WasmTextError
impl Ord for WasmTextError
Source§fn cmp(&self, other: &WasmTextError) -> Ordering
fn cmp(&self, other: &WasmTextError) -> 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 WasmTextError
impl PartialEq for WasmTextError
Source§fn eq(&self, other: &WasmTextError) -> bool
fn eq(&self, other: &WasmTextError) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for WasmTextError
impl PartialOrd for WasmTextError
impl Copy for WasmTextError
impl Eq for WasmTextError
impl StructuralPartialEq for WasmTextError
Auto Trait Implementations§
impl Freeze for WasmTextError
impl RefUnwindSafe for WasmTextError
impl Send for WasmTextError
impl Sync for WasmTextError
impl Unpin for WasmTextError
impl UnsafeUnpin for WasmTextError
impl UnwindSafe for WasmTextError
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