pub struct JSBigInt { /* private fields */ }Expand description
Wrapper around facebook::jsi::BigInt providing a safe Rust API
Implementations§
Source§impl JSBigInt
impl JSBigInt
Sourcepub fn from_i64(runtime: &mut JSRuntime, value: i64) -> Self
pub fn from_i64(runtime: &mut JSRuntime, value: i64) -> Self
Create a new BigInt from a signed 64-bit integer
Sourcepub fn from_u64(runtime: &mut JSRuntime, value: u64) -> Self
pub fn from_u64(runtime: &mut JSRuntime, value: u64) -> Self
Create a new BigInt from an unsigned 64-bit integer
pub fn as_string_opt( &self, runtime: &mut JSRuntime, radix: i32, ) -> Result<JSString, Exception>
pub fn as_string(&self, runtime: &mut JSRuntime) -> Result<JSString, Exception>
pub fn to_string(&self, runtime: &mut JSRuntime) -> Result<String, Exception>
Auto Trait Implementations§
impl !Send for JSBigInt
impl !Sync for JSBigInt
impl Forget for JSBigInt
impl Freeze for JSBigInt
impl RefUnwindSafe for JSBigInt
impl Unpin for JSBigInt
impl UnsafeUnpin 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