Struct RangeError

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

The RangeError object indicates an error when a value is not in the set or range of allowed values.

MDN documentation

Implementations

impl RangeError

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

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

MDN documentation

impl RangeError

fn new(message: &str) -> RangeError

The RangeError object indicates an error when a value is not in the set or range of allowed values.

MDN documentation

Trait Implementations

impl AsRef<Error> for RangeError

fn as_ref(&self) -> &Error

impl AsRef<JsValue> for RangeError

fn as_ref(&self) -> &JsValue

impl AsRef<Object> for RangeError

fn as_ref(&self) -> &Object

impl AsRef<RangeError> for RangeError

fn as_ref(&self) -> &RangeError

impl Clone for RangeError

fn clone(&self) -> Self

impl Debug for RangeError

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

impl Deref for RangeError

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

impl Eq for RangeError

impl ErasableGeneric for RangeError

type Repr = JsValue;

impl From<JsValue> for RangeError

fn from(obj: JsValue) -> Self

impl FromWasmAbi for RangeError

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

impl IntoJsGeneric for RangeError where RangeError: JsGeneric,

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

impl IntoWasmAbi for RangeError

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

impl JsCast for RangeError

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

impl LongRefFromWasmAbi for RangeError

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

impl OptionFromWasmAbi for RangeError

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

impl OptionIntoWasmAbi for RangeError

fn none() -> Self::Abi

impl PartialEq for RangeError

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

impl Promising for RangeError

type Resolution = RangeError;

impl RefFromWasmAbi for RangeError

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

impl StructuralPartialEq for RangeError

impl UpcastFrom<RangeError> for RangeError

impl WasmDescribe for RangeError

fn describe()

Auto Trait Implementations

impl Freeze for RangeError

impl RefUnwindSafe for RangeError

impl Send for RangeError

impl Sync for RangeError

impl Unpin for RangeError

impl UnsafeUnpin for RangeError

impl UnwindSafe for RangeError

Blanket Implementations

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

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

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

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

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

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

impl<T> From<T> for RangeError

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

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

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

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

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

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

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

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

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

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