Struct neon::types::bigint::RangeError
source · pub struct RangeError<T>(_);
Available on crate feature
napi-6
only.Expand description
Indicates a lossless conversion from a JsBigInt
to a Rust integer
could not be performed.
Failures include:
- Negative sign on an unsigned int
- Overflow of an int
- Underflow of a signed int
Implementations§
source§impl<T> RangeError<T>
impl<T> RangeError<T>
sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Get the lossy value read from a BigInt
. It may be truncated,
sign extended or wrapped.
Trait Implementations§
source§impl<T: Clone> Clone for RangeError<T>
impl<T: Clone> Clone for RangeError<T>
source§fn clone(&self) -> RangeError<T>
fn clone(&self) -> RangeError<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: Debug> Debug for RangeError<T>
impl<T: Debug> Debug for RangeError<T>
source§impl<T> Display for RangeError<T>where
T: Display,
impl<T> Display for RangeError<T>where T: Display,
source§impl<T> Error for RangeError<T>where
T: Display + Debug,
impl<T> Error for RangeError<T>where T: Display + Debug,
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl<T: PartialEq> PartialEq<RangeError<T>> for RangeError<T>
impl<T: PartialEq> PartialEq<RangeError<T>> for RangeError<T>
source§fn eq(&self, other: &RangeError<T>) -> bool
fn eq(&self, other: &RangeError<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.