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 Add for CyclotomicRingElement
impl Add for CyclotomicRingElement
Source§impl AddAssign for CyclotomicRingElement
impl AddAssign 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 Mul for CyclotomicRingElement
impl Mul for CyclotomicRingElement
Source§impl PartialEq for CyclotomicRingElement
impl PartialEq for CyclotomicRingElement
Source§impl Serialize for CyclotomicRingElement
impl Serialize for CyclotomicRingElement
Source§impl Sub for CyclotomicRingElement
impl Sub for CyclotomicRingElement
Source§impl Zero for CyclotomicRingElement
impl Zero for CyclotomicRingElement
impl Copy for CyclotomicRingElement
impl Eq for CyclotomicRingElement
impl StructuralPartialEq for CyclotomicRingElement
Auto Trait Implementations§
impl Freeze for CyclotomicRingElement
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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