pub struct BoxedMultiplier {
product: Vec<Limb>,
}Expand description
Boxed multiplier with a pre-allocated internal buffer to avoid additional allocations.
Fields§
§product: Vec<Limb>Implementations§
Source§impl BoxedMultiplier
impl BoxedMultiplier
pub fn new() -> Self
fn get_buffer(&mut self, limbs: usize) -> &mut UintRef
pub fn overflowing_mul( &mut self, lhs: &BoxedUint, rhs: &BoxedUint, ) -> (&mut UintRef, Choice)
pub fn overflowing_mul_assign( &mut self, lhs: &mut BoxedUint, rhs: &BoxedUint, ) -> Choice
pub fn overflowing_square(&mut self, lhs: &BoxedUint) -> (&mut UintRef, Choice)
pub fn overflowing_square_assign(&mut self, lhs: &mut BoxedUint) -> Choice
pub fn wrapping_mul(&mut self, lhs: &BoxedUint, rhs: &BoxedUint) -> &mut UintRef
pub fn wrapping_mul_assign(&mut self, lhs: &mut BoxedUint, rhs: &BoxedUint)
fn wrapping_mul_with_carry( &mut self, lhs: &BoxedUint, rhs: &BoxedUint, ) -> (&mut UintRef, Limb)
pub fn wrapping_square_assign(&mut self, lhs: &mut BoxedUint)
fn wrapping_square_with_carry( &mut self, lhs: &BoxedUint, ) -> (&mut UintRef, Limb)
Trait Implementations§
Source§impl Clone for BoxedMultiplier
impl Clone for BoxedMultiplier
Source§fn clone(&self) -> BoxedMultiplier
fn clone(&self) -> BoxedMultiplier
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for BoxedMultiplier
impl RefUnwindSafe for BoxedMultiplier
impl Send for BoxedMultiplier
impl Sync for BoxedMultiplier
impl Unpin for BoxedMultiplier
impl UnsafeUnpin for BoxedMultiplier
impl UnwindSafe for BoxedMultiplier
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