pub trait BigIntExt {
// Required methods
fn bitsize(&self, signed: bool) -> u16;
fn has_correct_sign(&self, signed: bool) -> bool;
}Required Methods§
Sourcefn bitsize(&self, signed: bool) -> u16
fn bitsize(&self, signed: bool) -> u16
Determines the fewest bits necessary to serialize self as an optionally signed integer.
Sourcefn has_correct_sign(&self, signed: bool) -> bool
fn has_correct_sign(&self, signed: bool) -> bool
Returns true if this number sign aligns with the signed.