pub struct AST {
pub meta: Meta,
pub compiler_version: Option<Version>,
pub custom_gates: bool,
pub custom_gates_declared: bool,
pub includes: Vec<String>,
pub definitions: Vec<Definition>,
pub main_component: Option<MainComponent>,
}
Fields§
§meta: Meta
§compiler_version: Option<Version>
§custom_gates: bool
§custom_gates_declared: bool
§includes: Vec<String>
§definitions: Vec<Definition>
§main_component: Option<MainComponent>
Implementations§
Source§impl AST
impl AST
pub fn get_includes(&self) -> &Vec<String>
pub fn get_version(&self) -> &Option<Version>
pub fn get_definitions(&self) -> &Vec<Definition>
pub fn decompose( self, ) -> (Meta, Option<Version>, Vec<String>, Vec<Definition>, Option<MainComponent>)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AST
impl RefUnwindSafe for AST
impl Send for AST
impl Sync for AST
impl Unpin for AST
impl UnwindSafe for AST
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more