pub struct ParsedMachineInstruction { /* private fields */ }
Expand description
A parsed machine instruction.
Implementations§
Source§impl 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>
pub fn get_argument<T: FromStr>(&self, idx: usize) -> Result<T, ParseError>
Reads the nth argument and parses it to T
.
Trait Implementations§
Source§impl Debug for ParsedMachineInstruction
impl Debug for ParsedMachineInstruction
Source§impl Display for ParsedMachineInstruction
impl Display for ParsedMachineInstruction
Auto Trait Implementations§
impl Freeze for ParsedMachineInstruction
impl RefUnwindSafe for ParsedMachineInstruction
impl Send for ParsedMachineInstruction
impl Sync for ParsedMachineInstruction
impl Unpin for ParsedMachineInstruction
impl UnwindSafe for ParsedMachineInstruction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more