Enum arrabbiata::columns::Column
source · pub enum Column {
Selector(Gadget),
PublicInput(usize),
X(usize),
}
Variants§
Trait Implementations§
source§impl From<Column> for usize
impl From<Column> for usize
Convert a column to a usize. This is used by the library [mvpoly] when we need to compute the cross-terms. For now, only the private inputs and the public inputs are converted, because there might not need to treat the selectors in the polynomial while computing the cross-terms (FIXME: check this later, but pretty sure it’s the case).
Also, the [mvpoly::monomials] implementation of the trait [mvpoly::MVPoly] will be used, and the mapping here is consistent with the one expected by this implementation, i.e. we simply map to an increasing number starting at 0, without any gap.
source§impl PartialEq<Column> for Column
impl PartialEq<Column> for Column
impl Copy for Column
impl StructuralPartialEq for Column
Auto Trait Implementations§
impl RefUnwindSafe for Column
impl Send for Column
impl Sync for Column
impl Unpin for Column
impl UnwindSafe for Column
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