[−][src]Struct js_sys::WebAssembly::CompileError
The WebAssembly.CompileError()
constructor creates a new
WebAssembly CompileError
object, which indicates an error during
WebAssembly decoding or validation.
Implementations
impl CompileError
[src][−]
pub fn new(message: &str) -> CompileError
[src][−]
The WebAssembly.CompileError()
constructor creates a new
WebAssembly CompileError
object, which indicates an error during
WebAssembly decoding or validation.
Methods from Deref<Target = Error>
pub fn message(&self) -> JsString
[src][−]
The message property is a human-readable description of the error.
pub fn set_message(&self, message: &str)
[src][−]
pub fn name(&self) -> JsString
[src][−]
The name property represents a name for the type of error. The initial value is "Error".
pub fn to_string(&self) -> JsString
[src][−]
The toString()
method returns a string representing the specified Error object
Trait Implementations
impl AsRef<CompileError> for CompileError
[src][+]
impl AsRef<Error> for CompileError
[src][+]
impl AsRef<JsValue> for CompileError
[src][+]
impl Clone for CompileError
[src][+]
impl Debug for CompileError
[src][+]
impl Deref for CompileError
[src][+]
impl Eq for CompileError
[src]
impl From<CompileError> for JsValue
[src][+]
impl From<CompileError> for Error
[src][+]
impl From<JsValue> for CompileError
[src][+]
impl FromWasmAbi for CompileError
[src][+]
impl IntoWasmAbi for CompileError
[src][+]
impl<'a> IntoWasmAbi for &'a CompileError
[src][+]
impl JsCast for CompileError
[src][+]
impl OptionFromWasmAbi for CompileError
[src][+]
impl OptionIntoWasmAbi for CompileError
[src][+]
impl<'a> OptionIntoWasmAbi for &'a CompileError
[src][+]
impl PartialEq<CompileError> for CompileError
[src][+]
impl RefFromWasmAbi for CompileError
[src][+]
impl StructuralEq for CompileError
[src]
impl StructuralPartialEq for CompileError
[src]
impl WasmDescribe for CompileError
[src][+]
Auto Trait Implementations
impl RefUnwindSafe for CompileError
impl !Send for CompileError
impl !Sync for CompileError
impl Unpin for CompileError
impl UnwindSafe for CompileError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ReturnWasmAbi for T where
T: IntoWasmAbi,
[src][+]
T: IntoWasmAbi,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,