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

Create a new context without CDF backend

Set a source cache id in the context. The next witness or constraint encoding should consume it instead of storing the raw path

Consume a previously set source cache id.

Set the internal CDF provider

Fetch the internal source

Attempt to fetch a path from source cache

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.