Struct CompileError

#[repr(transparent)]
pub struct CompileError { /* private fields */ }

The WebAssembly.CompileError() constructor creates a new WebAssembly CompileError object, which indicates an error during WebAssembly decoding or validation.

MDN documentation

Implementations

impl CompileError

fn new(message: &str) -> CompileError

The WebAssembly.CompileError() constructor creates a new WebAssembly CompileError object, which indicates an error during WebAssembly decoding or validation.

MDN documentation

impl CompileError

fn new_with_options(message: &str, options: &ErrorOptions) -> CompileError

Creates a new WebAssembly.CompileError with the given message and a typed ErrorOptions dictionary whose cause property indicates the original cause of the error.

MDN documentation

Trait Implementations

impl AsRef<CompileError> for CompileError

fn as_ref(&self) -> &CompileError

impl AsRef<Error> for CompileError

fn as_ref(&self) -> &Error

impl AsRef<JsValue> for CompileError

fn as_ref(&self) -> &JsValue

impl Clone for CompileError

fn clone(&self) -> Self

impl Debug for CompileError

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Deref for CompileError

type Target = Error;
fn deref(&self) -> &Error

impl Eq for CompileError

impl ErasableGeneric for CompileError

type Repr = JsValue;

impl From<JsValue> for CompileError

fn from(obj: JsValue) -> Self

impl FromWasmAbi for CompileError

type Abi = <JsValue as FromWasmAbi>::Abi;
unsafe fn from_abi(js: Self::Abi) -> Self

impl IntoJsGeneric for CompileError where CompileError: JsGeneric,

type JsCanon = CompileError;
fn to_js(self) -> CompileError

impl IntoWasmAbi for CompileError

type Abi = <JsValue as IntoWasmAbi>::Abi;
fn into_abi(self) -> Self::Abi

impl JsCast for CompileError

fn instanceof(val: &JsValue) -> bool
fn unchecked_from_js(val: JsValue) -> Self
fn unchecked_from_js_ref(val: &JsValue) -> &Self

impl LongRefFromWasmAbi for CompileError

type Abi = <JsValue as LongRefFromWasmAbi>::Abi;
type Anchor = CompileError;
unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor

impl OptionFromWasmAbi for CompileError

fn is_none(abi: &Self::Abi) -> bool

impl OptionIntoWasmAbi for CompileError

fn none() -> Self::Abi

impl PartialEq for CompileError

fn eq(&self, other: &Self) -> bool

impl Promising for CompileError

type Resolution = CompileError;

impl RefFromWasmAbi for CompileError

type Abi = <JsValue as RefFromWasmAbi>::Abi;
type Anchor = ManuallyDrop<CompileError>;
unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor

impl StructuralPartialEq for CompileError

impl UpcastFrom<CompileError> for CompileError

impl WasmDescribe for CompileError

fn describe()

Auto Trait Implementations

impl Freeze for CompileError

impl RefUnwindSafe for CompileError

impl Send for CompileError

impl Sync for CompileError

impl Unpin for CompileError

impl UnsafeUnpin for CompileError

impl UnwindSafe for CompileError

Blanket Implementations

impl<P, T> Receiver for CompileError where P: Deref<Target = T> + ?Sized, T: ?Sized,

impl<S, T> Upcast<T> for CompileError where T: UpcastFrom<S> + ?Sized, S: ?Sized,

impl<T> Any for CompileError where T: 'static + ?Sized,

impl<T> Borrow<T> for CompileError where T: ?Sized,

impl<T> BorrowMut<T> for CompileError where T: ?Sized,

impl<T> CloneToUninit for CompileError where T: Clone,

impl<T> From<T> for CompileError

impl<T> JsGeneric for CompileError where T: ErasableGeneric<Repr = JsValue> + UpcastFrom<T> + Upcast<JsValue> + JsCast + 'static,

impl<T> ReturnWasmAbi for CompileError where T: IntoWasmAbi,

impl<T> ToOwned for CompileError where T: Clone,

impl<T> TryFromJsValue for CompileError where T: JsCast,

impl<T> VectorFromWasmAbi for CompileError where T: ErasableGeneric<Repr = JsValue> + WasmDescribe,

impl<T> VectorIntoWasmAbi for CompileError where T: ErasableGeneric<Repr = JsValue> + WasmDescribe,

impl<T> VectorRefIntoWasmAbi for CompileError where &'a T: for<'a> Into<JsValue>,

impl<T, U> Into<U> for CompileError where U: From<T>,

impl<T, U> TryFrom<U> for CompileError where U: Into<T>,

impl<T, U> TryInto<U> for CompileError where U: TryFrom<T>,