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 functions: IndexMap<Identifier, Function>,
}

Stores the Leo program abstract syntax tree.

Fields

name: Stringexpected_input: Vec<FunctionInput>imports: Vec<ImportStatement>circuits: IndexMap<Identifier, Circuit>functions: IndexMap<Identifier, Function>

Implementations

impl Program[src]

pub fn new(name: String) -> Self[src]

pub fn get_name(&self) -> String[src]

pub fn name(self, name: String) -> Self[src]

Trait Implementations

impl AsRef<Program> for Program[src]

impl AsRef<Program> for Ast[src]

impl Clone for Program[src]

impl Debug for Program[src]

impl<'de> Deserialize<'de> for Program[src]

impl Display for Program[src]

impl Eq for Program[src]

impl PartialEq<Program> for Program[src]

impl Serialize for Program[src]

impl StructuralEq for Program[src]

impl StructuralPartialEq for Program[src]

Auto Trait Implementations

impl !RefUnwindSafe for Program

impl !Send for Program

impl !Sync for Program

impl Unpin for Program

impl UnwindSafe for Program

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.