Struct franklin_crypto::plonk::circuit::bigint_new::field::FieldElementsChain
source · pub struct FieldElementsChain<'a, E: Engine, F: PrimeField> {
pub elems_to_add: Vec<FieldElement<'a, E, F>>,
pub elems_to_sub: Vec<FieldElement<'a, E, F>>,
}
Fields§
§elems_to_add: Vec<FieldElement<'a, E, F>>
§elems_to_sub: Vec<FieldElement<'a, E, F>>
Implementations§
source§impl<'a, E: Engine, F: PrimeField> FieldElementsChain<'a, E, F>
impl<'a, E: Engine, F: PrimeField> FieldElementsChain<'a, E, F>
pub fn new() -> Self
pub fn add_pos_term(&mut self, elem: &FieldElement<'a, E, F>) -> &mut Self
pub fn add_neg_term(&mut self, elem: &FieldElement<'a, E, F>) -> &mut Self
pub fn is_constant(&self) -> bool
pub fn get_field_value(&self) -> Option<F>
pub fn get_maximal_positive_stored_value(&self) -> BigUint
pub fn get_maximal_negative_stored_value(&self) -> BigUint
pub fn negate(self) -> Self
Auto Trait Implementations§
impl<'a, E, F> Freeze for FieldElementsChain<'a, E, F>
impl<'a, E, F> RefUnwindSafe for FieldElementsChain<'a, E, F>
impl<'a, E, F> Send for FieldElementsChain<'a, E, F>
impl<'a, E, F> Sync for FieldElementsChain<'a, E, F>
impl<'a, E, F> Unpin for FieldElementsChain<'a, E, F>
impl<'a, E, F> UnwindSafe for FieldElementsChain<'a, E, F>where
<E as ScalarEngine>::Fr: UnwindSafe + RefUnwindSafe,
F: UnwindSafe + RefUnwindSafe,
E: RefUnwindSafe,
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> 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