Struct circomspect_program_structure::abstract_syntax_tree::ast::AST
source · [−]pub struct AST {
pub meta: Meta,
pub compiler_version: Option<Version>,
pub custom_gates: bool,
pub custom_gates_declared: bool,
pub includes: Vec<Include>,
pub definitions: Vec<Definition>,
pub main_component: Option<MainComponent>,
}Fields
meta: Metacompiler_version: Option<Version>custom_gates: boolcustom_gates_declared: boolincludes: Vec<Include>definitions: Vec<Definition>main_component: Option<MainComponent>Implementations
sourceimpl AST
impl AST
pub fn get_includes(&self) -> &Vec<Include>
pub fn get_version(&self) -> &Option<Version>
pub fn get_definitions(&self) -> &Vec<Definition>
pub fn decompose(
self
) -> (Meta, Option<Version>, Vec<Include>, Vec<Definition>, Option<MainComponent>)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for AST
impl Send for AST
impl Sync for AST
impl Unpin for AST
impl UnwindSafe for AST
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