pub struct Context<S> { /* private fields */ }Expand description
Encoding and decoding context to be defined by the reader/writer and consumed by the elements
Implementations
sourceimpl<S> Context<S>
impl<S> Context<S>
sourcepub fn with_source_cache_id(&mut self, id: usize) -> &mut Self
pub fn with_source_cache_id(&mut self, id: usize) -> &mut Self
Set a source cache id in the context. The next witness or constraint encoding should consume it instead of storing the raw path
sourcepub fn take_source_cache_id(&mut self) -> Option<usize>
pub fn take_source_cache_id(&mut self) -> Option<usize>
Consume a previously set source cache id.
sourcepub fn with_cdf(cdf: CircuitDescription<S>) -> Self
pub fn with_cdf(cdf: CircuitDescription<S>) -> Self
Set the internal CDF provider
Trait Implementations
Auto Trait Implementations
impl<S> RefUnwindSafe for Context<S> where
S: RefUnwindSafe,
impl<S> Send for Context<S> where
S: Send,
impl<S> Sync for Context<S> where
S: Sync,
impl<S> Unpin for Context<S> where
S: Unpin,
impl<S> UnwindSafe for Context<S> where
S: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more