[][src]Struct bellman_ce::Namespace

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]

type Root = CS::Root

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

fn namespace<'a, NR, N>(
    &'a mut self,
    name_fn: N
) -> Namespace<'a, E, Self::Root> where
    NR: Into<String>,
    N: FnOnce() -> NR, 
[src]

Begin a namespace for this constraint system.

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

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

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.