pub struct JsBigInt {
pub word_count: usize,
/* private fields */
}
๐Deprecated since 3.0.0: Use
napi::bindgen_prelude::BigInt
insteadFieldsยง
ยงword_count: usize
๐Deprecated since 3.0.0: Use
napi::bindgen_prelude::BigInt
insteadImplementationsยง
Sourceยงimpl JsBigInt
impl JsBigInt
Trait Implementationsยง
Sourceยงimpl FromNapiValue for JsBigInt
impl FromNapiValue for JsBigInt
Sourceยงunsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
Safety Read more
fn from_unknown(value: Unknown<'_>) -> Result<Self>
Sourceยงimpl JsValue<'_> for JsBigInt
impl JsValue<'_> for JsBigInt
fn value(&self) -> Value
fn raw(&self) -> napi_value
Sourceยงfn to_unknown(&self) -> Unknown<'env>
fn to_unknown(&self) -> Unknown<'env>
Convert the value to an unknown
Sourceยงfn coerce_to_bool(&self) -> Result<bool>
fn coerce_to_bool(&self) -> Result<bool>
Coerce the value to a boolean
fn coerce_to_number(&self) -> Result<JsNumber<'_>>
fn coerce_to_string(&self) -> Result<JsString<'_>>
fn coerce_to_object(&self) -> Result<Object<'env>>
fn is_date(&self) -> Result<bool>
fn is_promise(&self) -> Result<bool>
fn is_error(&self) -> Result<bool>
fn is_typedarray(&self) -> Result<bool>
fn is_dataview(&self) -> Result<bool>
fn is_array(&self) -> Result<bool>
fn is_buffer(&self) -> Result<bool>
fn is_arraybuffer(&self) -> Result<bool>
fn instanceof<'c, Constructor>(&self, constructor: Constructor) -> Result<bool>where
Constructor: JsValue<'c>,
fn escape<'scope, E: JsValue<'scope> + FromNapiValue>( &self, escapable_handle_scope: EscapableHandleScope<'scope>, ) -> Result<E>
Sourceยงimpl 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
Sourceยงimpl TryFrom<JsBigInt> for i64
The BigInt will be converted losslessly when the value is over what an int64 could hold.
impl TryFrom<JsBigInt> for i64
The BigInt will be converted losslessly when the value is over what an int64 could hold.
Sourceยงimpl TryFrom<JsBigInt> for u64
The BigInt will be converted losslessly when the value is over what an uint64 could hold.
impl TryFrom<JsBigInt> for u64
The BigInt will be converted losslessly when the value is over what an uint64 could hold.
Sourceยงimpl ValidateNapiValue for JsBigInt
impl ValidateNapiValue for JsBigInt
Sourceยงunsafe fn validate(env: napi_env, napi_val: napi_value) -> Result<napi_value>
unsafe fn validate(env: napi_env, napi_val: napi_value) -> Result<napi_value>
Safety Read more
impl Copy for JsBigInt
Auto Trait Implementationsยง
impl Freeze for JsBigInt
impl RefUnwindSafe for JsBigInt
impl !Send for JsBigInt
impl !Sync for JsBigInt
impl Unpin for JsBigInt
impl UnwindSafe for JsBigInt
Blanket Implementationsยง
Sourceยงimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Sourceยงfn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Sourceยงimpl<'env, T> JsValuesTuple for Twhere
T: JsValue<'env>,
impl<'env, T> JsValuesTuple for Twhere
T: JsValue<'env>,
fn env(&self) -> *mut napi_env__
Sourceยงimpl<T> JsValuesTupleIntoVec for Twhere
T: ToNapiValue,
impl<T> JsValuesTupleIntoVec for Twhere
T: ToNapiValue,
fn into_vec(self, env: *mut napi_env__) -> Result<Vec<*mut napi_value__>, Error>
Sourceยงimpl<'env, T> ToNapiValue for Twhere
T: JsValue<'env>,
impl<'env, T> ToNapiValue for Twhere
T: JsValue<'env>,
Sourceยงunsafe fn to_napi_value(
_env: *mut napi_env__,
val: T,
) -> Result<*mut napi_value__, Error>
unsafe fn to_napi_value( _env: *mut napi_env__, val: T, ) -> Result<*mut napi_value__, Error>
Safety Read more