[][src]Enum zkp_stark::RationalExpression

Variants

X
Constant(FieldElement)
Trace(usizeisize)

Methods

impl RationalExpression[src]

pub fn neg(&self) -> Self[src]

pub fn inv(&self) -> Self[src]

pub fn pow(&self, exponent: usize) -> Self[src]

impl RationalExpression[src]

pub fn degree(&self, trace_degree: usize) -> (usize, usize)[src]

Numerator and denominator degree of the expression in X.

Calculates an upper bound. Cancelations may occur.

pub fn trace_degree(&self) -> (usize, usize)[src]

pub fn evaluate(
    &self,
    x: &FieldElement,
    trace: &dyn Fn(usize, isize) -> FieldElement
) -> FieldElement
[src]

Trait Implementations

impl Clone for RationalExpression[src]

impl From<i32> for RationalExpression[src]

impl<'_> From<&'_ FieldElement> for RationalExpression[src]

impl Add<RationalExpression> for RationalExpression[src]

type Output = Self

The resulting type after applying the + operator.

impl Sub<RationalExpression> for RationalExpression[src]

type Output = Self

The resulting type after applying the - operator.

impl Mul<RationalExpression> for RationalExpression[src]

type Output = Self

The resulting type after applying the * operator.

impl Div<RationalExpression> for RationalExpression[src]

type Output = Self

The resulting type after applying the / operator.

impl Debug for RationalExpression[src]

impl Sum<RationalExpression> for RationalExpression[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,