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.
Auto Trait Implementations§
impl<F> Freeze for Namespace<F>
impl<F> !RefUnwindSafe for Namespace<F>
impl<F> !Send for Namespace<F>
impl<F> !Sync for Namespace<F>
impl<F> Unpin for Namespace<F>
impl<F> !UnwindSafe for Namespace<F>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)