[−][src]Struct y86_lib::assembler::Y86Assembler
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
impl RefUnwindSafe for Y86Assembler
impl Send for Y86Assembler
impl Sync for Y86Assembler
impl Unpin for Y86Assembler
impl UnwindSafe for Y86Assembler
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>,