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.
Implementations
impl RangeError
fn new_with_options(message: &str, options: &ErrorOptions) -> RangeErrorCreates a new
RangeErrorwith the given message and a typedErrorOptionsdictionary whosecauseproperty indicates the original cause of the error.
impl RangeError
fn new(message: &str) -> RangeErrorThe
RangeErrorobject indicates an error when a value is not in the set or range of allowed values.
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) -> boolfn unchecked_from_js(val: JsValue) -> Selffn 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()