Struct twenty_first::shared_math::lattice::CyclotomicRingElement
source · pub struct CyclotomicRingElement { /* private fields */ }
Implementations§
source§impl CyclotomicRingElement
impl CyclotomicRingElement
pub fn sample_short(randomness: &[u8]) -> CyclotomicRingElement
pub fn sample_uniform(randomness: &[u8]) -> CyclotomicRingElement
pub fn hadamard( a: CyclotomicRingElement, b: CyclotomicRingElement ) -> CyclotomicRingElement
Trait Implementations§
source§impl AddAssign<CyclotomicRingElement> for CyclotomicRingElement
impl AddAssign<CyclotomicRingElement> for CyclotomicRingElement
source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+=
operation. Read moresource§impl Clone for CyclotomicRingElement
impl Clone for CyclotomicRingElement
source§fn clone(&self) -> CyclotomicRingElement
fn clone(&self) -> CyclotomicRingElement
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 Debug for CyclotomicRingElement
impl Debug for CyclotomicRingElement
source§impl<'de> Deserialize<'de> for CyclotomicRingElement
impl<'de> Deserialize<'de> for CyclotomicRingElement
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 From<[BFieldElement; 64]> for CyclotomicRingElement
impl From<[BFieldElement; 64]> for CyclotomicRingElement
source§fn from(value: [BFieldElement; 64]) -> Self
fn from(value: [BFieldElement; 64]) -> Self
Converts to this type from the input type.
source§impl From<CyclotomicRingElement> for [BFieldElement; 64]
impl From<CyclotomicRingElement> for [BFieldElement; 64]
source§fn from(value: CyclotomicRingElement) -> Self
fn from(value: CyclotomicRingElement) -> Self
Converts to this type from the input type.
source§impl PartialEq<CyclotomicRingElement> for CyclotomicRingElement
impl PartialEq<CyclotomicRingElement> for CyclotomicRingElement
source§fn eq(&self, other: &CyclotomicRingElement) -> bool
fn eq(&self, other: &CyclotomicRingElement) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CyclotomicRingElement
impl Serialize for CyclotomicRingElement
source§impl Zero for CyclotomicRingElement
impl Zero for CyclotomicRingElement
impl Copy for CyclotomicRingElement
impl Eq for CyclotomicRingElement
impl StructuralEq for CyclotomicRingElement
impl StructuralPartialEq for CyclotomicRingElement
Auto Trait Implementations§
impl RefUnwindSafe for CyclotomicRingElement
impl Send for CyclotomicRingElement
impl Sync for CyclotomicRingElement
impl Unpin for CyclotomicRingElement
impl UnwindSafe for CyclotomicRingElement
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