Struct circomspect_program_structure::intermediate_representation::degree_meta::DegreeKnowledge
source · pub struct DegreeKnowledge { /* private fields */ }Implementations§
source§impl DegreeKnowledge
impl DegreeKnowledge
pub fn new() -> DegreeKnowledge
pub fn set_degree(&mut self, range: &DegreeRange) -> bool
pub fn degree(&self) -> Option<&DegreeRange>
sourcepub fn is_constant(&self) -> bool
pub fn is_constant(&self) -> bool
Returns true if the degree range is known, and the upper bound is at most constant.
sourcepub fn is_linear(&self) -> bool
pub fn is_linear(&self) -> bool
Returns true if the degree range is known, and the upper bound is at most linear.
sourcepub fn is_quadratic(&self) -> bool
pub fn is_quadratic(&self) -> bool
Returns true if the degree range is known, and the upper bound is at most quadratic.
Trait Implementations§
source§impl Clone for DegreeKnowledge
impl Clone for DegreeKnowledge
source§fn clone(&self) -> DegreeKnowledge
fn clone(&self) -> DegreeKnowledge
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Default for DegreeKnowledge
impl Default for DegreeKnowledge
source§fn default() -> DegreeKnowledge
fn default() -> DegreeKnowledge
Returns the “default value” for a type. Read more