[][src]Struct ch8alib::codegen::Assembler

pub struct Assembler { /* fields omitted */ }

Assembles Chip-8 binaries

Methods

impl Assembler[src]

pub fn new(code: &str, name: &str) -> Result<Self, AsmError>[src]

Constructs a new Assembler instance

Arguments

  • code - The source code to be assembled
  • name - The name of the assembled binary

Returns

A new Assembler instance with the given properties, wrapped in a Result

pub fn assemble(&mut self) -> Result<&mut Binary, AsmError>[src]

Assembles source code into a binary

Returns

The assembled binary, wrapped in a Result

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.