pub enum WasmFeatureError {
Empty,
Unknown,
}Expand description
Error returned when a WebAssembly feature label cannot be parsed.
Variants§
Empty
The supplied feature label was empty.
Unknown
The supplied feature label is not in the known feature list.
Trait Implementations§
Source§impl Clone for WasmFeatureError
impl Clone for WasmFeatureError
Source§fn clone(&self) -> WasmFeatureError
fn clone(&self) -> WasmFeatureError
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 WasmFeatureError
impl Debug for WasmFeatureError
Source§impl Display for WasmFeatureError
impl Display for WasmFeatureError
Source§impl Error for WasmFeatureError
impl Error for WasmFeatureError
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 WasmFeatureError
impl Hash for WasmFeatureError
Source§impl Ord for WasmFeatureError
impl Ord for WasmFeatureError
Source§fn cmp(&self, other: &WasmFeatureError) -> Ordering
fn cmp(&self, other: &WasmFeatureError) -> 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 WasmFeatureError
impl PartialEq for WasmFeatureError
Source§fn eq(&self, other: &WasmFeatureError) -> bool
fn eq(&self, other: &WasmFeatureError) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for WasmFeatureError
impl PartialOrd for WasmFeatureError
impl Copy for WasmFeatureError
impl Eq for WasmFeatureError
impl StructuralPartialEq for WasmFeatureError
Auto Trait Implementations§
impl Freeze for WasmFeatureError
impl RefUnwindSafe for WasmFeatureError
impl Send for WasmFeatureError
impl Sync for WasmFeatureError
impl Unpin for WasmFeatureError
impl UnsafeUnpin for WasmFeatureError
impl UnwindSafe for WasmFeatureError
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