pub struct WireModQ { /* private fields */ }Expand description
Representation of a mod-q wire.
We represent a mod-q wire for q > 3 by the modulusq alongside a
list of mod-q digits.
Trait Implementations§
Source§impl AddAssign for WireModQ
impl AddAssign for WireModQ
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+= operation. Read moreSource§impl<'de> Deserialize<'de> for WireModQ
impl<'de> Deserialize<'de> for WireModQ
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl MulAssign<u16> for WireModQ
impl MulAssign<u16> for WireModQ
Source§fn mul_assign(&mut self, rhs: u16)
fn mul_assign(&mut self, rhs: u16)
Performs the
*= operation. Read moreSource§impl SubAssign for WireModQ
impl SubAssign for WireModQ
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-= operation. Read moreSource§impl WireLabel for WireModQ
impl WireLabel for WireModQ
Source§fn zero(q: u16) -> Self
fn zero(q: u16) -> Self
Unpack the wire represented by a Block with modulus q. Assumes that
the block was constructed through the AllWire API.
Source§fn hash_to_mod(hash: U8x16, q: u16) -> Self
fn hash_to_mod(hash: U8x16, q: u16) -> Self
Converts a hashed block into a valid wire of the given modulus
q. Read moreimpl ArithmeticWire for WireModQ
impl StructuralPartialEq for WireModQ
Auto Trait Implementations§
impl Freeze for WireModQ
impl RefUnwindSafe for WireModQ
impl Send for WireModQ
impl Sync for WireModQ
impl Unpin for WireModQ
impl UnwindSafe for WireModQ
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<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§impl<T> IsSameType<T> for T
impl<T> IsSameType<T> for T
§type EqualityProposition = TrueEqualityProposition
type EqualityProposition = TrueEqualityProposition
The [
EqualityProposition] that Self == T