pub struct SubEnvColumn<'a, F: PrimeField, CIx1: ColumnIndexer, Env1: ColAccessCap<F, CIx1>, L>(_);
Expand description

Sub environment with a lens that is mapping columns.

Implementations§

source§

impl<'a, F: PrimeField, CIx1: ColumnIndexer, Env1: ColAccessCap<F, CIx1>, L> SubEnvColumn<'a, F, CIx1, Env1, L>

source

pub fn new(env: &'a mut Env1, lens: L) -> Self

Trait Implementations§

source§

impl<'a, F: PrimeField, CIx1: ColumnIndexer, CIx2: ColumnIndexer, Env1: ColAccessCap<F, CIx1>, L: MPrism<Source = CIx1, Target = CIx2>> ColAccessCap<F, CIx2> for SubEnvColumn<'a, F, CIx1, Env1, L>

§

type Variable = <Env1 as ColAccessCap<F, CIx1>>::Variable

source§

fn assert_zero(&mut self, cst: Self::Variable)

Asserts that the value is zero.
source§

fn set_assert_mapper( &mut self, mapper: Box<dyn Fn(Self::Variable) -> Self::Variable> )

Sets an assert predicate f(X) such that when assert_zero is called on x, it will actually perform assert_zero(f(x)).
source§

fn constant(value: F) -> Self::Variable

Turns a constant value into a variable.
source§

fn read_column(&self, ix: CIx2) -> Self::Variable

Reads value from a column position.
source§

impl<'a, F: PrimeField, CIx1: ColumnIndexer, CIx2: ColumnIndexer, Env1: ColWriteCap<F, CIx1>, L: MPrism<Source = CIx1, Target = CIx2>> ColWriteCap<F, CIx2> for SubEnvColumn<'a, F, CIx1, Env1, L>

source§

fn write_column(&mut self, ix: CIx2, value: &Self::Variable)

source§

impl<'a, F: PrimeField, CIx1: ColumnIndexer, CIx2: ColumnIndexer, Env1: HybridCopyCap<F, CIx1>, L: MPrism<Source = CIx1, Target = CIx2>> HybridCopyCap<F, CIx2> for SubEnvColumn<'a, F, CIx1, Env1, L>

source§

fn hcopy(&mut self, x: &Self::Variable, ix: CIx2) -> Self::Variable

Given variable x and position ix, it (hybrid) writes x into ix, and returns the value.
source§

impl<'a, F: PrimeField, CIx1: ColumnIndexer, CIx2: ColumnIndexer, LT: LookupTableID, Env1: LookupCap<F, CIx1, LT>, L: MPrism<Source = CIx1, Target = CIx2>> LookupCap<F, CIx2, LT> for SubEnvColumn<'a, F, CIx1, Env1, L>

source§

fn lookup(&mut self, lookup_id: LT, value: Vec<Self::Variable>)

Look up (read) value from a lookup table.
source§

fn lookup_runtime_write(&mut self, lookup_id: LT, value: Vec<Self::Variable>)

Write a value into a runtime table. Panics if called on a fixed table.

Auto Trait Implementations§

§

impl<'a, F, CIx1, Env1, L> RefUnwindSafe for SubEnvColumn<'a, F, CIx1, Env1, L>where CIx1: RefUnwindSafe, Env1: RefUnwindSafe, F: RefUnwindSafe, L: RefUnwindSafe,

§

impl<'a, F, CIx1, Env1, L> Send for SubEnvColumn<'a, F, CIx1, Env1, L>where CIx1: Send, Env1: Send, L: Send,

§

impl<'a, F, CIx1, Env1, L> Sync for SubEnvColumn<'a, F, CIx1, Env1, L>where CIx1: Sync, Env1: Sync, L: Sync,

§

impl<'a, F, CIx1, Env1, L> Unpin for SubEnvColumn<'a, F, CIx1, Env1, L>where CIx1: Unpin, F: Unpin, L: Unpin,

§

impl<'a, F, CIx1, Env1, L> !UnwindSafe for SubEnvColumn<'a, F, CIx1, Env1, L>

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Pointable for T

§

const ALIGN: usize = mem::align_of::<T>()

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

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

§

fn vzip(self) -> V