Struct circomspect_program_structure::intermediate_representation::degree_meta::DegreeEnvironment
source · [−]pub struct DegreeEnvironment { /* private fields */ }Expand description
This type is used to track degrees of individual variables during degree propagation.
Implementations
sourceimpl DegreeEnvironment
impl DegreeEnvironment
pub fn new() -> DegreeEnvironment
sourcepub fn set_degree(&mut self, var: &VariableName, range: &DegreeRange)
pub fn set_degree(&mut self, var: &VariableName, range: &DegreeRange)
Sets the degree range of the given variable.
sourcepub fn set_type(&mut self, var: &VariableName, var_type: &VariableType)
pub fn set_type(&mut self, var: &VariableName, var_type: &VariableType)
Sets the type of the given variable.
sourcepub fn degree(&self, var: &VariableName) -> Option<&DegreeRange>
pub fn degree(&self, var: &VariableName) -> Option<&DegreeRange>
Gets the degree range of the given variable.
sourcepub fn is_local(&self, var: &VariableName) -> bool
pub fn is_local(&self, var: &VariableName) -> bool
Returns true if the given variable is a local variable.
Trait Implementations
sourceimpl Clone for DegreeEnvironment
impl Clone for DegreeEnvironment
sourcefn clone(&self) -> DegreeEnvironment
fn clone(&self) -> DegreeEnvironment
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Default for DegreeEnvironment
impl Default for DegreeEnvironment
sourcefn default() -> DegreeEnvironment
fn default() -> DegreeEnvironment
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for DegreeEnvironment
impl Send for DegreeEnvironment
impl Sync for DegreeEnvironment
impl Unpin for DegreeEnvironment
impl UnwindSafe for DegreeEnvironment
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more