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

pub struct Program { /* fields omitted */ }

Implementations

impl Program[src]

pub fn new() -> Program[src]

pub fn add_instruction(&mut self, instruction: Instruction)[src]

pub fn add_static_init_instruction(&mut self, instruction: Instruction)[src]

pub fn borrow_instructions(&self) -> &Vec<Instruction>[src]

pub fn borrow_static_init_instructions(&self) -> &Vec<Instruction>[src]

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

pub fn borrow_variable(&self, id: VariableId) -> &Variable[src]

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

pub fn iterate_all_variables(&self) -> impl Iterator<Item = VariableId>[src]

pub fn create_label(&mut self, occurs_in_static_body: bool) -> LabelId[src]

pub fn is_label_in_static_body(&self, label: LabelId) -> bool[src]

pub fn iterate_all_labels(&self) -> impl Iterator<Item = LabelId>[src]

pub fn add_error(&mut self, description: String) -> u32[src]

pub fn borrow_error_descriptions(&self) -> &Vec<String>[src]

Trait Implementations

impl Debug for Program[src]

impl Index<VariableId> for Program[src]

type Output = Variable

The returned type after indexing.

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.