[−][src]Struct nodespeak::resolved::structure::Program
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.
fn index(&self, scope: ScopeId) -> &Self::Output
[src]
impl Index<VariableId> for Program
[src]
type Output = Variable
The returned type after indexing.
fn index(&self, variable: VariableId) -> &Self::Output
[src]
impl IndexMut<ScopeId> for Program
[src]
impl IndexMut<VariableId> for Program
[src]
fn index_mut(&mut self, variable: VariableId) -> &mut Self::Output
[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]
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>,