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.
Implementations
impl CompileError
fn new(message: &str) -> CompileErrorThe
WebAssembly.CompileError()constructor creates a new WebAssemblyCompileErrorobject, which indicates an error during WebAssembly decoding or validation.
impl CompileError
fn new_with_options(message: &str, options: &ErrorOptions) -> CompileErrorCreates a new
WebAssembly.CompileErrorwith the given message and a typedErrorOptionsdictionary whosecauseproperty indicates the original cause of the error.
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) -> boolfn unchecked_from_js(val: JsValue) -> Selffn 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()