pub struct JsBigInt {
pub word_count: usize,
/* private fields */
}
Fields§
§word_count: usize
Implementations§
source§impl 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§
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
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
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