mirror of
https://github.com/napi-rs/napi-rs.git
synced 2025-12-08 19:56:07 +00:00
chore(napi): add Eq and PartialEq trait to BigInt (#3033)
This commit is contained in:
parent
a10be50edb
commit
dc4d475eee
@ -21,7 +21,7 @@ pub struct i64n(pub i64);
|
||||
|
||||
/// <https://nodejs.org/api/n-api.html#napi_create_bigint_words>
|
||||
/// The resulting BigInt is calculated as: (–1)^sign_bit (words\[0\] × (2^64)^0 + words\[1\] × (2^64)^1 + …)
|
||||
#[derive(Debug, Clone)]
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
pub struct BigInt {
|
||||
/// true for negative numbers
|
||||
pub sign_bit: bool,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user