Type Alias sp1_recursion_compiler::ir::Digest

source ·
pub type Digest<T> = FieldArray<T, NUM_RANDOM_ELEMENTS>;

Aliased Type§

struct Digest<T>(pub [T; 4]);

Fields§

§0: [T; 4]

Trait Implementations

source§

impl<F, const N: usize> AbstractField for FieldArray<F, N>
where F: Field,

source§

type F = F

source§

fn zero() -> FieldArray<F, N>

source§

fn one() -> FieldArray<F, N>

source§

fn two() -> FieldArray<F, N>

source§

fn neg_one() -> FieldArray<F, N>

source§

fn from_f(f: <FieldArray<F, N> as AbstractField>::F) -> FieldArray<F, N>

source§

fn from_bool(b: bool) -> FieldArray<F, N>

source§

fn from_canonical_u8(n: u8) -> FieldArray<F, N>

source§

fn from_canonical_u16(n: u16) -> FieldArray<F, N>

source§

fn from_canonical_u32(n: u32) -> FieldArray<F, N>

source§

fn from_canonical_u64(n: u64) -> FieldArray<F, N>

source§

fn from_canonical_usize(n: usize) -> FieldArray<F, N>

source§

fn from_wrapped_u32(n: u32) -> FieldArray<F, N>

source§

fn from_wrapped_u64(n: u64) -> FieldArray<F, N>

source§

fn generator() -> FieldArray<F, N>

A generator of this field’s entire multiplicative group.
source§

fn double(&self) -> Self

source§

fn square(&self) -> Self

source§

fn cube(&self) -> Self

source§

fn exp_u64(&self, power: u64) -> Self

Exponentiation by a u64 power. Read more
source§

fn exp_const_u64<const POWER: u64>(&self) -> Self

source§

fn exp_power_of_2(&self, power_log: usize) -> Self

source§

fn powers(&self) -> Powers<Self>

source§

fn shifted_powers(&self, start: Self) -> Powers<Self>

source§

fn powers_packed<P>(&self) -> PackedPowers<Self, P>
where P: PackedField<Scalar = Self>,

source§

fn shifted_powers_packed<P>(&self, start: Self) -> PackedPowers<Self, P>
where P: PackedField<Scalar = Self>,

source§

fn dot_product<const N: usize>(u: &[Self; N], v: &[Self; N]) -> Self

source§

fn try_div<Rhs>(self, rhs: Rhs) -> Option<Self::Output>
where Rhs: Field, Self: Mul<Rhs>,

source§

impl<F, const N: usize> Add<F> for FieldArray<F, N>
where F: Field,

source§

type Output = FieldArray<F, N>

The resulting type after applying the + operator.
source§

fn add(self, rhs: F) -> <FieldArray<F, N> as Add<F>>::Output

Performs the + operation. Read more
source§

impl<F, const N: usize> Add for FieldArray<F, N>
where F: Field,

source§

type Output = FieldArray<F, N>

The resulting type after applying the + operator.
source§

fn add(self, rhs: FieldArray<F, N>) -> <FieldArray<F, N> as Add>::Output

Performs the + operation. Read more
source§

impl<F, const N: usize> AddAssign<F> for FieldArray<F, N>
where F: Field,

source§

fn add_assign(&mut self, rhs: F)

Performs the += operation. Read more
source§

impl<F, const N: usize> AddAssign for FieldArray<F, N>
where F: Field,

source§

fn add_assign(&mut self, rhs: FieldArray<F, N>)

Performs the += operation. Read more
source§

impl<F, const N: usize> Clone for FieldArray<F, N>
where F: Clone + Field,

source§

fn clone(&self) -> FieldArray<F, N>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<F, const N: usize> Debug for FieldArray<F, N>
where F: Debug + Field,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<F, const N: usize> Default for FieldArray<F, N>
where F: Field,

source§

fn default() -> FieldArray<F, N>

Returns the “default value” for a type. Read more
source§

impl<F, const N: usize> From<[F; N]> for FieldArray<F, N>
where F: Field,

source§

fn from(arr: [F; N]) -> FieldArray<F, N>

Converts to this type from the input type.
source§

impl<F, const N: usize> From<F> for FieldArray<F, N>
where F: Field,

source§

fn from(val: F) -> FieldArray<F, N>

Converts to this type from the input type.
source§

impl<F, const N: usize> Mul<F> for FieldArray<F, N>
where F: Field,

source§

type Output = FieldArray<F, N>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: F) -> <FieldArray<F, N> as Mul<F>>::Output

Performs the * operation. Read more
source§

impl<F, const N: usize> Mul for FieldArray<F, N>
where F: Field,

source§

type Output = FieldArray<F, N>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: FieldArray<F, N>) -> <FieldArray<F, N> as Mul>::Output

Performs the * operation. Read more
source§

impl<F, const N: usize> MulAssign<F> for FieldArray<F, N>
where F: Field,

source§

fn mul_assign(&mut self, rhs: F)

Performs the *= operation. Read more
source§

impl<F, const N: usize> MulAssign for FieldArray<F, N>
where F: Field,

source§

fn mul_assign(&mut self, rhs: FieldArray<F, N>)

Performs the *= operation. Read more
source§

impl<F, const N: usize> Neg for FieldArray<F, N>
where F: Field,

source§

type Output = FieldArray<F, N>

The resulting type after applying the - operator.
source§

fn neg(self) -> <FieldArray<F, N> as Neg>::Output

Performs the unary - operation. Read more
source§

impl<F, const N: usize> PartialEq for FieldArray<F, N>
where F: PartialEq + Field,

source§

fn eq(&self, other: &FieldArray<F, N>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<F, const N: usize> Product for FieldArray<F, N>
where F: Field,

source§

fn product<I>(iter: I) -> FieldArray<F, N>
where I: Iterator<Item = FieldArray<F, N>>,

Takes an iterator and generates Self from the elements by multiplying the items.
source§

impl<F, const N: usize> Sub<F> for FieldArray<F, N>
where F: Field,

source§

type Output = FieldArray<F, N>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: F) -> <FieldArray<F, N> as Sub<F>>::Output

Performs the - operation. Read more
source§

impl<F, const N: usize> Sub for FieldArray<F, N>
where F: Field,

source§

type Output = FieldArray<F, N>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: FieldArray<F, N>) -> <FieldArray<F, N> as Sub>::Output

Performs the - operation. Read more
source§

impl<F, const N: usize> SubAssign<F> for FieldArray<F, N>
where F: Field,

source§

fn sub_assign(&mut self, rhs: F)

Performs the -= operation. Read more
source§

impl<F, const N: usize> SubAssign for FieldArray<F, N>
where F: Field,

source§

fn sub_assign(&mut self, rhs: FieldArray<F, N>)

Performs the -= operation. Read more
source§

impl<F, const N: usize> Sum for FieldArray<F, N>
where F: Field,

source§

fn sum<I>(iter: I) -> FieldArray<F, N>
where I: Iterator<Item = FieldArray<F, N>>,

Takes an iterator and generates Self from the elements by “summing up” the items.
source§

impl<F, const N: usize> Copy for FieldArray<F, N>
where F: Copy + Field,

source§

impl<F, const N: usize> Eq for FieldArray<F, N>
where F: Eq + Field,

source§

impl<F, const N: usize> StructuralPartialEq for FieldArray<F, N>
where F: Field,