chore(napi): add Eq and PartialEq trait to BigInt (#3033)

This commit is contained in:
Stanisław Czech 2025-11-25 10:33:51 +01:00 committed by GitHub
parent a10be50edb
commit dc4d475eee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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,