[][src]Struct nodespeak::vague::structure::Scope

pub struct Scope { /* fields omitted */ }

Implementations

impl Scope[src]

pub fn new() -> Scope[src]

pub fn from_parent(parent: ScopeId) -> Scope[src]

pub fn get_parent(&self) -> Option<ScopeId>[src]

pub fn add_statement(&mut self, statement: Statement)[src]

pub fn define_symbol(&mut self, symbol: &str, definition: VariableId)[src]

pub fn define_intermediate(&mut self, definition: VariableId)[src]

pub fn clear_inputs(&mut self)[src]

pub fn clear_outputs(&mut self)[src]

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

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

pub fn borrow_body(&self) -> &Vec<Statement>[src]

pub fn borrow_symbols(&self) -> &HashMap<String, VariableId>[src]

pub fn borrow_intermediates(&self) -> &Vec<VariableId>[src]

pub fn get_input(&self, index: usize) -> VariableId[src]

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

pub fn get_output(&self, index: usize) -> VariableId[src]

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

pub fn get_single_output(&self) -> Option<VariableId>[src]

Trait Implementations

impl Debug for Scope[src]

Auto Trait Implementations

impl RefUnwindSafe for Scope

impl Send for Scope

impl Sync for Scope

impl Unpin for Scope

impl UnwindSafe for Scope

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.