Struct ReferenceError

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

The ReferenceError object represents an error when a non-existent variable is referenced.

MDN documentation

Implementations

impl ReferenceError

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

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

MDN documentation

impl ReferenceError

fn new(message: &str) -> ReferenceError

The ReferenceError object represents an error when a non-existent variable is referenced.

MDN documentation

Trait Implementations

impl AsRef<Error> for ReferenceError

fn as_ref(&self) -> &Error

impl AsRef<JsValue> for ReferenceError

fn as_ref(&self) -> &JsValue

impl AsRef<Object> for ReferenceError

fn as_ref(&self) -> &Object

impl AsRef<ReferenceError> for ReferenceError

fn as_ref(&self) -> &ReferenceError

impl Clone for ReferenceError

fn clone(&self) -> Self

impl Debug for ReferenceError

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

impl Deref for ReferenceError

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

impl Eq for ReferenceError

impl ErasableGeneric for ReferenceError

type Repr = JsValue;

impl From<JsValue> for ReferenceError

fn from(obj: JsValue) -> Self

impl FromWasmAbi for ReferenceError

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

impl IntoJsGeneric for ReferenceError where ReferenceError: JsGeneric,

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

impl IntoWasmAbi for ReferenceError

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

impl JsCast for ReferenceError

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

impl LongRefFromWasmAbi for ReferenceError

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

impl OptionFromWasmAbi for ReferenceError

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

impl OptionIntoWasmAbi for ReferenceError

fn none() -> Self::Abi

impl PartialEq for ReferenceError

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

impl Promising for ReferenceError

type Resolution = ReferenceError;

impl RefFromWasmAbi for ReferenceError

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

impl StructuralPartialEq for ReferenceError

impl UpcastFrom<ReferenceError> for ReferenceError

impl WasmDescribe for ReferenceError

fn describe()

Auto Trait Implementations

impl Freeze for ReferenceError

impl RefUnwindSafe for ReferenceError

impl Send for ReferenceError

impl Sync for ReferenceError

impl Unpin for ReferenceError

impl UnsafeUnpin for ReferenceError

impl UnwindSafe for ReferenceError

Blanket Implementations

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

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

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

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

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

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

impl<T> From<T> for ReferenceError

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

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

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

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

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

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

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

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

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

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