Struct circomspect_program_structure::intermediate_representation::declarations::Declaration
source · [−]pub struct Declaration { /* private fields */ }Expand description
To avoid having to add a new declaration for each new version of a variable we track all declarations as part of the CFG header.
Implementations
sourceimpl Declaration
impl Declaration
pub fn new(
name: &VariableName,
var_type: &VariableType,
dimensions: &[Expression],
file_id: &Option<FileID>,
file_location: &FileLocation
) -> Declaration
pub fn file_id(&self) -> Option<FileID>
pub fn file_location(&self) -> FileLocation
pub fn variable_name(&self) -> &VariableName
pub fn variable_type(&self) -> &VariableType
pub fn dimensions(&self) -> &Vec<Expression>
Trait Implementations
sourceimpl Clone for Declaration
impl Clone for Declaration
sourcefn clone(&self) -> Declaration
fn clone(&self) -> Declaration
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 Hash for Declaration
impl Hash for Declaration
sourceimpl PartialEq<Declaration> for Declaration
impl PartialEq<Declaration> for Declaration
sourcefn eq(&self, other: &Declaration) -> bool
fn eq(&self, other: &Declaration) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
impl Eq for Declaration
impl StructuralEq for Declaration
impl StructuralPartialEq for Declaration
Auto Trait Implementations
impl RefUnwindSafe for Declaration
impl Send for Declaration
impl Sync for Declaration
impl Unpin for Declaration
impl UnwindSafe for Declaration
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