pub struct Program { /* private fields */ }
Expand description
Represents an entire program written in the Nodespeak language.
Implementations§
Source§impl Program
impl Program
pub fn new() -> Program
pub fn create_scope(&mut self) -> ScopeId
pub fn modify_variable(&mut self, variable: VariableId, modified: Variable)
pub fn adopt_variable(&mut self, variable: Variable) -> VariableId
pub fn set_data_type(&mut self, variable: VariableId, data_type: DataType)
pub fn get_static_init(&self) -> ScopeId
pub fn get_entry_point(&self) -> ScopeId
pub fn borrow_static_vars(&self) -> &[VariableId]
pub fn add_static_var(&mut self, static_var: VariableId)
pub fn borrow_inputs(&self) -> &[VariableId]
pub fn add_input(&mut self, input: VariableId)
pub fn borrow_outputs(&self) -> &[VariableId]
pub fn add_output(&mut self, output: VariableId)
Trait Implementations§
Source§impl Index<VariableId> for Program
impl Index<VariableId> for Program
Auto Trait Implementations§
impl Freeze for Program
impl RefUnwindSafe for Program
impl Send for Program
impl Sync for Program
impl Unpin for Program
impl UnwindSafe for Program
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more