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