Struct circomspect_program_structure::intermediate_representation::declarations::Declarations
source · pub struct Declarations(_);Expand description
A structure used to track declared variables.
Implementations§
source§impl Declarations
impl Declarations
pub fn new() -> Declarations
pub fn add_declaration(&mut self, declaration: &Declaration)
pub fn get_declaration(&self, name: &VariableName) -> Option<&Declaration>
pub fn get_type(&self, name: &VariableName) -> Option<&VariableType>
pub fn iter(&self) -> impl Iterator<Item = (&VariableName, &Declaration)>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
source§impl Clone for Declarations
impl Clone for Declarations
source§fn clone(&self) -> Declarations
fn clone(&self) -> Declarations
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 Declarations
impl Default for Declarations
source§fn default() -> Declarations
fn default() -> Declarations
Returns the “default value” for a type. Read more