[][src]Struct y86_lib::assembler::Y86Assembler

pub struct Y86Assembler { /* fields omitted */ }

A struct to hold bytes read from y86 bytes is a vector holding the bytes

Methods

impl Y86Assembler[src]

pub fn from_file(file_name: String) -> Result<Self, Box<dyn Error>>[src]

file_name: a string holding the file name to read reads a Y86 file and generates a Y86Assembler with the machine code content

pub fn save_file(&mut self, file_name: String) -> Result<(), Box<dyn Error>>[src]

Saves a the machine code content into a file specified by file_name

pub fn print(&self)[src]

Prints the machine code content onto stdout

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.