pub enum ZerofierTree<'c, FF: FiniteField + MulAssign<BFieldElement>> {
Leaf(Leaf<'c, FF>),
Branch(Box<Branch<'c, FF>>),
Padding,
}
Expand description
A zerofier tree is a balanced binary tree of vanishing polynomials. Conceptually, every leaf corresponds to a single point, and the value of that leaf is the monic linear polynomial that evaluates to zero there and no-where else. Every non-leaf node is the product of its two children. In practice, it makes sense to truncate the tree depth, in which case every leaf contains a chunk of points whose size is upper-bounded and more or less equal to some constant threshold.
Variants§
Implementations§
Source§impl<FF: FiniteField + MulAssign<BFieldElement>> ZerofierTree<'static, FF>
impl<FF: FiniteField + MulAssign<BFieldElement>> ZerofierTree<'static, FF>
pub fn new_from_domain(domain: &[FF]) -> Self
Source§impl<'c, FF> ZerofierTree<'c, FF>
impl<'c, FF> ZerofierTree<'c, FF>
pub fn zerofier(&self) -> Polynomial<'c, FF>
Trait Implementations§
Source§impl<'c, FF: Clone + FiniteField + MulAssign<BFieldElement>> Clone for ZerofierTree<'c, FF>
impl<'c, FF: Clone + FiniteField + MulAssign<BFieldElement>> Clone for ZerofierTree<'c, FF>
Source§fn clone(&self) -> ZerofierTree<'c, FF>
fn clone(&self) -> ZerofierTree<'c, FF>
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<'c, FF: Debug + FiniteField + MulAssign<BFieldElement>> Debug for ZerofierTree<'c, FF>
impl<'c, FF: Debug + FiniteField + MulAssign<BFieldElement>> Debug for ZerofierTree<'c, FF>
Source§impl<'c, FF: PartialEq + FiniteField + MulAssign<BFieldElement>> PartialEq for ZerofierTree<'c, FF>
impl<'c, FF: PartialEq + FiniteField + MulAssign<BFieldElement>> PartialEq for ZerofierTree<'c, FF>
impl<'c, FF: FiniteField + MulAssign<BFieldElement>> StructuralPartialEq for ZerofierTree<'c, FF>
Auto Trait Implementations§
impl<'c, FF> Freeze for ZerofierTree<'c, FF>
impl<'c, FF> RefUnwindSafe for ZerofierTree<'c, FF>where
FF: RefUnwindSafe,
impl<'c, FF> Send for ZerofierTree<'c, FF>
impl<'c, FF> Sync for ZerofierTree<'c, FF>
impl<'c, FF> Unpin for ZerofierTree<'c, FF>where
FF: Unpin,
impl<'c, FF> UnwindSafe for ZerofierTree<'c, FF>where
FF: UnwindSafe + 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> 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