[][src]Struct nodespeak::resolved::structure::Program

pub struct Program { /* fields omitted */ }

Represents an entire program written in the Nodespeak language.

Implementations

impl Program[src]

pub fn new() -> Program[src]

pub fn create_scope(&mut self) -> ScopeId[src]

pub fn modify_variable(&mut self, variable: VariableId, modified: Variable)[src]

pub fn adopt_variable(&mut self, variable: Variable) -> VariableId[src]

pub fn set_data_type(&mut self, variable: VariableId, data_type: DataType)[src]

pub fn get_static_init(&self) -> ScopeId[src]

pub fn get_entry_point(&self) -> ScopeId[src]

pub fn borrow_static_vars(&self) -> &[VariableId][src]

pub fn add_static_var(&mut self, static_var: VariableId)[src]

pub fn borrow_inputs(&self) -> &[VariableId][src]

pub fn add_input(&mut self, input: VariableId)[src]

pub fn borrow_outputs(&self) -> &[VariableId][src]

pub fn add_output(&mut self, output: VariableId)[src]

Trait Implementations

impl Debug for Program[src]

impl Index<ScopeId> for Program[src]

type Output = Scope

The returned type after indexing.

impl Index<VariableId> for Program[src]

type Output = Variable

The returned type after indexing.

impl IndexMut<ScopeId> for Program[src]

impl IndexMut<VariableId> 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> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.