Struct bellman::Namespace [] [src]

pub struct Namespace<'a, E: Engine, CS: ConstraintSystem<E> + 'a>(_, _);

This is a "namespaced" constraint system which borrows a constraint system (pushing a namespace context) and, when dropped, pops out of the namespace context.

Trait Implementations

impl<'cs, E: Engine, CS: ConstraintSystem<E>> ConstraintSystem<E> for Namespace<'cs, E, CS>
[src]

Represents the type of the "root" of this constraint system so that nested namespaces can minimize indirection. Read more

[src]

Return the "one" input variable

[src]

Allocate a private variable in the constraint system. The provided function is used to determine the assignment of the variable. The given annotation function is invoked in testing contexts in order to derive a unique name for this variable in the current namespace. Read more

[src]

Allocate a public variable in the constraint system. The provided function is used to determine the assignment of the variable. Read more

[src]

Enforce that A * B = C. The annotation function is invoked in testing contexts in order to derive a unique name for the constraint in the current namespace. Read more

[src]

Create a new (sub)namespace and enter into it. Not intended for downstream use; use namespace instead. Read more

[src]

Exit out of the existing namespace. Not intended for downstream use; use namespace instead. Read more

[src]

Gets the "root" constraint system, bypassing the namespacing. Not intended for downstream use; use namespace instead. Read more

[src]

Begin a namespace for this constraint system.

impl<'a, E: Engine, CS: ConstraintSystem<E>> Drop for Namespace<'a, E, CS>
[src]

[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl<'a, E, CS> Send for Namespace<'a, E, CS> where
    CS: Send,
    E: Send

impl<'a, E, CS> Sync for Namespace<'a, E, CS> where
    CS: Sync,
    E: Sync