Struct EvalError

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

Implementations

impl EvalError

fn new(message: &str) -> EvalError

The EvalError object indicates an error regarding the global eval() function. This exception is not thrown by JavaScript anymore, however the EvalError object remains for compatibility.

MDN documentation

impl EvalError

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

Creates a new EvalError 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<Error> for EvalError

fn as_ref(&self) -> &Error

impl AsRef<EvalError> for EvalError

fn as_ref(&self) -> &EvalError

impl AsRef<JsValue> for EvalError

fn as_ref(&self) -> &JsValue

impl AsRef<Object> for EvalError

fn as_ref(&self) -> &Object

impl Clone for EvalError

fn clone(&self) -> Self

impl Debug for EvalError

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

impl Deref for EvalError

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

impl Eq for EvalError

impl ErasableGeneric for EvalError

type Repr = JsValue;

impl From<JsValue> for EvalError

fn from(obj: JsValue) -> Self

impl FromWasmAbi for EvalError

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

impl IntoJsGeneric for EvalError where EvalError: JsGeneric,

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

impl IntoWasmAbi for EvalError

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

impl JsCast for EvalError

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

impl LongRefFromWasmAbi for EvalError

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

impl OptionFromWasmAbi for EvalError

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

impl OptionIntoWasmAbi for EvalError

fn none() -> Self::Abi

impl PartialEq for EvalError

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

impl Promising for EvalError

type Resolution = EvalError;

impl RefFromWasmAbi for EvalError

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

impl StructuralPartialEq for EvalError

impl UpcastFrom<EvalError> for EvalError

impl WasmDescribe for EvalError

fn describe()

Auto Trait Implementations

impl Freeze for EvalError

impl RefUnwindSafe for EvalError

impl Send for EvalError

impl Sync for EvalError

impl Unpin for EvalError

impl UnsafeUnpin for EvalError

impl UnwindSafe for EvalError

Blanket Implementations

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

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

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

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

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

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

impl<T> From<T> for EvalError

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

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

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

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

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

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

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

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

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

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