Struct leo_ast::program::Program [−][src]
pub struct Program { pub name: String, pub expected_input: Vec<FunctionInput>, pub imports: Vec<ImportStatement>, pub circuits: IndexMap<Identifier, Circuit>, pub global_consts: IndexMap<String, DefinitionStatement>, pub functions: IndexMap<Identifier, Function>, }
Expand description
Stores the Leo program abstract syntax tree.
Fields
name: String
expected_input: Vec<FunctionInput>
imports: Vec<ImportStatement>
circuits: IndexMap<Identifier, Circuit>
global_consts: IndexMap<String, DefinitionStatement>
functions: IndexMap<Identifier, Function>
Implementations
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl !RefUnwindSafe for Program
impl UnwindSafe for Program
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more