[][src]Struct reustmann::Program

pub struct Program(_);

A set of instructions that can be given to an interpreter.

Implementations

impl Program[src]

pub fn from_file<P: AsRef<Path>>(path: P) -> Result<Program>[src]

Construct a new Program from a source.

Make sure that you truncate the final newline if any.

pub fn from_iter<I: IntoIterator<Item = u8>>(iter: I) -> Program[src]

Construct a program from a list of instructions (mnemonic).

pub fn memory(&self) -> &[u8][src]

Get the u8 representation of the source.

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, 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.