[−][src]Struct nodespeak::vague::structure::Scope
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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,