[−][src]Struct nodespeak::trivial::structure::Program
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.
fn index(&self, variable: VariableId) -> &Self::Output
[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>,