pub struct BigInt<'a> { /* private fields */ }Implementations§
Source§impl<'a> BigInt<'a>
impl<'a> BigInt<'a>
Sourcepub exec fn is_negative(&self) -> negative : bool
pub exec fn is_negative(&self) -> negative : bool
ensures
negative ==> int_from_be_bytes(self.view()) < i64::MIN as int,!negative ==> int_from_be_bytes(self.view()) > i64::MAX as int,Returns the sign of an arbitrary-size integer.
BigInt values are canonical encodings longer than eight octets, so
their values are strictly outside the signed 64-bit range.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for BigInt<'a>
impl<'a> RefUnwindSafe for BigInt<'a>
impl<'a> Send for BigInt<'a>
impl<'a> Sync for BigInt<'a>
impl<'a> Unpin for BigInt<'a>
impl<'a> UnsafeUnpin for BigInt<'a>
impl<'a> UnwindSafe for BigInt<'a>
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