pub struct OverflowInt<T> { /* private fields */ }
Implementations§
Source§impl<T> OverflowInt<T>
impl<T> OverflowInt<T>
pub fn from_canonical_unsigned_limbs( x: Vec<T>, limb_bits: usize, ) -> OverflowInt<T>
pub fn from_canonical_signed_limbs( x: Vec<T>, limb_bits: usize, ) -> OverflowInt<T>
pub fn from_computed_limbs( x: Vec<T>, limb_max_abs: usize, max_overflow_bits: usize, ) -> OverflowInt<T>
pub fn max_overflow_bits(&self) -> usize
pub fn limb_max_abs(&self) -> usize
pub fn num_limbs(&self) -> usize
pub fn limb(&self, i: usize) -> &T
pub fn limbs(&self) -> &[T]
Source§impl<T> OverflowInt<T>
impl<T> OverflowInt<T>
Source§impl OverflowInt<isize>
impl OverflowInt<isize>
pub fn from_biguint( x: &BigUint, limb_bits: usize, min_limbs: Option<usize>, ) -> OverflowInt<isize>
pub fn calculate_carries(&self, limb_bits: usize) -> Vec<isize>
Trait Implementations§
Source§impl<T> Add for OverflowInt<T>
impl<T> Add for OverflowInt<T>
Source§type Output = OverflowInt<T>
type Output = OverflowInt<T>
The resulting type after applying the
+
operator.Source§fn add(self, other: OverflowInt<T>) -> OverflowInt<T>
fn add(self, other: OverflowInt<T>) -> OverflowInt<T>
Performs the
+
operation. Read moreSource§impl<T: Clone> Clone for OverflowInt<T>
impl<T: Clone> Clone for OverflowInt<T>
Source§fn clone(&self) -> OverflowInt<T>
fn clone(&self) -> OverflowInt<T>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T: Debug> Debug for OverflowInt<T>
impl<T: Debug> Debug for OverflowInt<T>
Source§impl<T> Mul for OverflowInt<T>
impl<T> Mul for OverflowInt<T>
Source§type Output = OverflowInt<T>
type Output = OverflowInt<T>
The resulting type after applying the
*
operator.Source§fn mul(self, other: OverflowInt<T>) -> OverflowInt<T>
fn mul(self, other: OverflowInt<T>) -> OverflowInt<T>
Performs the
*
operation. Read moreSource§impl<T> Sub for OverflowInt<T>
impl<T> Sub for OverflowInt<T>
Source§type Output = OverflowInt<T>
type Output = OverflowInt<T>
The resulting type after applying the
-
operator.Source§fn sub(self, other: OverflowInt<T>) -> OverflowInt<T>
fn sub(self, other: OverflowInt<T>) -> OverflowInt<T>
Performs the
-
operation. Read moreAuto Trait Implementations§
impl<T> Freeze for OverflowInt<T>
impl<T> RefUnwindSafe for OverflowInt<T>where
T: RefUnwindSafe,
impl<T> Send for OverflowInt<T>where
T: Send,
impl<T> Sync for OverflowInt<T>where
T: Sync,
impl<T> Unpin for OverflowInt<T>where
T: Unpin,
impl<T> UnwindSafe for OverflowInt<T>where
T: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more