pub struct BinaryPoly256 { /* private fields */ }Implementations§
Source§impl BinaryPoly256
impl BinaryPoly256
pub fn from_parts(hi: u128, lo: u128) -> Self
pub fn split(&self) -> (BinaryPoly128, BinaryPoly128)
Sourcepub fn reduce_mod(&self, modulus: &BinaryPoly128) -> BinaryPoly128
pub fn reduce_mod(&self, modulus: &BinaryPoly128) -> BinaryPoly128
reduce modulo a 128-bit polynomial (for field operations)
Sourcepub fn high(&self) -> BinaryPoly128
pub fn high(&self) -> BinaryPoly128
get the high 128 bits
Sourcepub fn low(&self) -> BinaryPoly128
pub fn low(&self) -> BinaryPoly128
get the low 128 bits
pub fn leading_zeros(&self) -> u32
pub fn add(&self, other: &Self) -> Self
pub fn shl(&self, n: u32) -> Self
pub fn shr(&self, n: u32) -> Self
Trait Implementations§
Source§impl Clone for BinaryPoly256
impl Clone for BinaryPoly256
Source§fn clone(&self) -> BinaryPoly256
fn clone(&self) -> BinaryPoly256
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 moreSource§impl Debug for BinaryPoly256
impl Debug for BinaryPoly256
Source§impl Default for BinaryPoly256
impl Default for BinaryPoly256
Source§fn default() -> BinaryPoly256
fn default() -> BinaryPoly256
Returns the “default value” for a type. Read more
Source§impl PartialEq for BinaryPoly256
impl PartialEq for BinaryPoly256
impl Copy for BinaryPoly256
impl Eq for BinaryPoly256
impl StructuralPartialEq for BinaryPoly256
Auto Trait Implementations§
impl Freeze for BinaryPoly256
impl RefUnwindSafe for BinaryPoly256
impl Send for BinaryPoly256
impl Sync for BinaryPoly256
impl Unpin for BinaryPoly256
impl UnsafeUnpin for BinaryPoly256
impl UnwindSafe for BinaryPoly256
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