pub struct JsBigInt {
pub word_count: usize,
/* private fields */
}
Fields
word_count: usize
Implementations
sourceimpl JsBigInt
impl JsBigInt
pub fn into_unknown(self) -> Result<JsUnknown>
pub fn coerce_to_number(self) -> Result<JsNumber>
pub fn coerce_to_string(self) -> Result<JsString>
pub fn coerce_to_object(self) -> Result<JsObject>
pub fn is_date(&self) -> Result<bool>
pub fn is_error(&self) -> Result<bool>
pub fn is_typedarray(&self) -> Result<bool>
pub fn is_dataview(&self) -> Result<bool>
pub fn is_array(&self) -> Result<bool>
pub fn is_buffer(&self) -> Result<bool>
pub fn instanceof<Constructor: NapiRaw>(
&self,
constructor: Constructor
) -> Result<bool>
Trait Implementations
sourceimpl NapiValue for JsBigInt
impl NapiValue for JsBigInt
unsafe fn from_raw(env: napi_env, value: napi_value) -> Result<Self>
unsafe fn from_raw_unchecked(env: napi_env, value: napi_value) -> Self
sourceimpl TryFrom<JsBigInt> for i64
impl TryFrom<JsBigInt> for i64
The BigInt will be converted losslessly when the value is over what an int64 could hold.
sourceimpl TryFrom<JsBigInt> for u64
impl TryFrom<JsBigInt> for u64
The BigInt will be converted losslessly when the value is over what an uint64 could hold.
impl Copy for JsBigInt
Auto Trait Implementations
impl RefUnwindSafe for JsBigInt
impl !Send for JsBigInt
impl !Sync for JsBigInt
impl Unpin for JsBigInt
impl UnwindSafe for JsBigInt
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more