[][src]Struct loa::assembly::Assembly

pub struct Assembly { /* fields omitted */ }

Methods

impl Assembly[src]

pub fn new() -> Assembly[src]

pub fn add_method_declaration_section(&mut self, section: Section)[src]

pub fn add_class_declaration_section(&mut self, section: Section)[src]

pub fn add_main_section(&mut self, section: Section)[src]

pub fn add_section(&mut self, section: Section)[src]

pub fn with_section(self, section: Section) -> Self[src]

pub fn last_main_section_mut(&mut self) -> &mut Section[src]

pub fn iter(
    &self
) -> Chain<Chain<Chain<Iter<Section>, Iter<Section>>, Iter<Section>>, Iter<Section>>
[src]

pub fn into_iter(
    self
) -> Chain<Chain<Chain<IntoIter<Section>, IntoIter<Section>>, IntoIter<Section>>, IntoIter<Section>>
[src]

pub fn compile(self, cursor: &mut Cursor) -> Vec<BytecodeInstruction>[src]

Trait Implementations

impl Clone for Assembly[src]

impl Debug for Assembly[src]

impl Into<Vec<Instruction>> for Assembly[src]

impl Optimizable for Assembly[src]

impl PartialEq<Assembly> for Assembly[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.