Struct folding::expressions::Term
source · pub struct Term<C: FoldingConfig> {
pub exp: FoldingExp<C>,
pub sign: Sign,
}
Expand description
A term of a polynomial
For instance, in the polynomial 3 X_{1} X_{2} + 2 X_{3}
, the terms are
3 X_{1} X_{2}
and 2 X_{3}
.
The sign is used to encode the sign of the term at the expression level.
It is used to split a polynomial in its terms/monomials of degree 0
, 1
and 2
.
Fields§
§exp: FoldingExp<C>
§sign: Sign
Trait Implementations§
source§impl<C> Clone for Term<C>where
C: FoldingConfig,
impl<C> Clone for Term<C>where C: FoldingConfig,
Auto Trait Implementations§
impl<C> RefUnwindSafe for Term<C>where <C as FoldingConfig>::Challenge: RefUnwindSafe, <C as FoldingConfig>::Column: RefUnwindSafe, <<C as FoldingConfig>::Curve as AffineRepr>::ScalarField: RefUnwindSafe, <C as FoldingConfig>::Selector: RefUnwindSafe,
impl<C> Send for Term<C>where <C as FoldingConfig>::Challenge: Send, <C as FoldingConfig>::Column: Send, <C as FoldingConfig>::Selector: Send,
impl<C> Sync for Term<C>where <C as FoldingConfig>::Challenge: Sync, <C as FoldingConfig>::Column: Sync, <C as FoldingConfig>::Selector: Sync,
impl<C> Unpin for Term<C>where <C as FoldingConfig>::Challenge: Unpin, <C as FoldingConfig>::Column: Unpin, <<C as FoldingConfig>::Curve as AffineRepr>::ScalarField: Unpin, <C as FoldingConfig>::Selector: Unpin,
impl<C> UnwindSafe for Term<C>where <C as FoldingConfig>::Challenge: UnwindSafe, <C as FoldingConfig>::Column: UnwindSafe, <<C as FoldingConfig>::Curve as AffineRepr>::ScalarField: UnwindSafe, <C as FoldingConfig>::Selector: UnwindSafe,
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