pub struct Zq { /* private fields */ }
Expand description
Represents an element in the ring Z/qZ where q = 2^32. Uses native u32 operations with automatic modulo reduction through wrapping arithmetic.
Implementations§
Trait Implementations§
Source§impl AddAssign for Zq
impl AddAssign for Zq
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+=
operation. Read moreSource§impl FromIterator<Zq> for PolyRing
impl FromIterator<Zq> for PolyRing
Source§impl FromIterator<Zq> for ZqVector
impl FromIterator<Zq> for ZqVector
Source§impl Mul<&Zq> for &PolyVector
impl Mul<&Zq> for &PolyVector
Source§type Output = PolyVector
type Output = PolyVector
The resulting type after applying the
*
operator.Source§impl MulAssign for Zq
impl MulAssign for Zq
Source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
Performs the
*=
operation. Read moreSource§impl Ord for Zq
impl Ord for Zq
Source§impl PartialOrd for Zq
impl PartialOrd for Zq
Source§impl SampleUniform for Zq
impl SampleUniform for Zq
Source§impl SubAssign for Zq
impl SubAssign for Zq
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moreimpl Copy for Zq
impl Eq for Zq
impl StructuralPartialEq for Zq
Auto Trait Implementations§
impl Freeze for Zq
impl RefUnwindSafe for Zq
impl Send for Zq
impl Sync for Zq
impl Unpin for Zq
impl UnwindSafe for Zq
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§impl<Borrowed> SampleBorrow<Borrowed> for Borrowedwhere
Borrowed: SampleUniform,
impl<Borrowed> SampleBorrow<Borrowed> for Borrowedwhere
Borrowed: SampleUniform,
Source§fn borrow(&self) -> &Borrowed
fn borrow(&self) -> &Borrowed
Immutably borrows from an owned value. See
Borrow::borrow