pub struct ParsedMachineInstruction { /* private fields */ }
Expand description
A parsed machine instruction.
Implementations
sourceimpl ParsedMachineInstruction
impl ParsedMachineInstruction
sourcepub fn get_command(&self) -> &str
pub fn get_command(&self) -> &str
Gets the command associated with this instruction.
sourcepub fn get_argument<T: FromStr>(&self, idx: usize) -> Result<T, ParseError>where
ParseError: From<<T as FromStr>::Err>,
pub fn get_argument<T: FromStr>(&self, idx: usize) -> Result<T, ParseError>where
ParseError: From<<T as FromStr>::Err>,
Reads the nth argument and parses it to T
.
Trait Implementations
sourceimpl Debug for ParsedMachineInstruction
impl Debug for ParsedMachineInstruction
sourceimpl Display for ParsedMachineInstruction
impl Display for ParsedMachineInstruction
Auto Trait Implementations
impl RefUnwindSafe for ParsedMachineInstruction
impl Send for ParsedMachineInstruction
impl Sync for ParsedMachineInstruction
impl Unpin for ParsedMachineInstruction
impl UnwindSafe for ParsedMachineInstruction
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more