Struct ark_relations::r1cs::Namespace
source · pub struct Namespace<F: Field> { /* private fields */ }
Expand description
A namespaced ConstraintSystemRef
.
Implementations§
source§impl<F: Field> Namespace<F>
impl<F: Field> Namespace<F>
sourcepub fn new(inner: ConstraintSystemRef<F>, id: Option<Id>) -> Self
pub fn new(inner: ConstraintSystemRef<F>, id: Option<Id>) -> Self
Construct a new Namespace
.
sourcepub fn cs(&self) -> ConstraintSystemRef<F>
pub fn cs(&self) -> ConstraintSystemRef<F>
Obtain the inner ConstraintSystemRef<F>
.
sourcepub fn leave_namespace(self)
pub fn leave_namespace(self)
Manually leave the namespace.
Trait Implementations§
source§impl<F: Field> From<ConstraintSystemRef<F>> for Namespace<F>
impl<F: Field> From<ConstraintSystemRef<F>> for Namespace<F>
source§fn from(other: ConstraintSystemRef<F>) -> Self
fn from(other: ConstraintSystemRef<F>) -> Self
Converts to this type from the input type.