pub fn region<F, T>(&self, name: &str, f: F) -> T
    where
        F: FnOnce() -> T,
    {
        self.log_circuit_event(&CircuitEvent::push_region(name));
        let res = f();
        self.log_circuit_event(&CircuitEvent::pop_region());
        res
    }
/// Evaluate closure `f` inside a new circuit region.
///
/// A region is a logical grouping of circuit nodes.  Regions are used
/// exclusively for debugging and do not affect scheduling or evaluation
/// of the circuit.  This function creates a new region and executes
/// closure `f` inside it.  Any operators or subcircuits created by
/// `f` will belong to the new region.
Evaluate closure `f` inside a new circuit region.
A region is a logical grouping of circuit nodes.  Regions are used
exclusively for debugging and do not affect scheduling or evaluation
of the circuit.  This function creates a new region and executes
closure `f` inside it.  Any operators or subcircuits created by
`f` will belong to the new region.
Evaluate closure ` f ` inside a new circuit region . A region is a logical grouping of circuit nodes . Regions are used exclusively for debugging and do not affect scheduling or evaluation of the circuit . This function creates a new region and executes closure ` f ` inside it . Any operators or subcircuits created by ` f ` will belong to the new region .
pub fn region<F, T>(&self, name: &str, f: F) -> T
    where
        F: FnOnce() -> T,
    {
        self.log_circuit_event(&CircuitEvent::push_region(name));
        let res = f();
        self.log_circuit_event(&CircuitEvent::pop_region());
        res
    }
pub fn region < F , T > ( & self , name : & str , f : F ) -> T where F : FnOnce ( ) -> T , { self . log_circuit_event ( & CircuitEvent :: push_region ( name ) ) ; let res = f ( ) ; self . log_circuit_event ( & CircuitEvent :: pop_region ( ) ) ; res }
Evaluate closure `f` inside a new circuit region.
Evaluate closure ` f ` inside a new circuit region .
&self
name
&str
f
F