pub enum LabelledInstruction {
Instruction(AnInstruction<String>),
Label(String),
Breakpoint,
TypeHint(TypeHint),
}Expand description
A LabelledInstruction has call addresses encoded as label names.
Variants§
Instruction(AnInstruction<String>)
An instructions from the instruction set architecture.
Label(String)
Labels look like “<name>:” and are translated into absolute addresses.
Breakpoint
TypeHint(TypeHint)
Implementations§
source§impl LabelledInstruction
impl LabelledInstruction
pub const fn grows_op_stack(&self) -> bool
👎Deprecated since 0.39.0: use
op_stack_size_influence() > 0 insteadpub const fn changes_op_stack_size(&self) -> bool
👎Deprecated since 0.39.0: use
op_stack_size_influence() != 0 insteadpub const fn shrinks_op_stack(&self) -> bool
👎Deprecated since 0.39.0: use
op_stack_size_influence() < 0 insteadpub const fn op_stack_size_influence(&self) -> i32
Trait Implementations§
source§impl<'a> Arbitrary<'a> for LabelledInstruction
impl<'a> Arbitrary<'a> for LabelledInstruction
source§fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
Generate an arbitrary value of
Self from the given unstructured data. Read moresource§fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
Generate an arbitrary value of
Self from the entirety of the given
unstructured data. Read moresource§impl Clone for LabelledInstruction
impl Clone for LabelledInstruction
source§fn clone(&self) -> LabelledInstruction
fn clone(&self) -> LabelledInstruction
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for LabelledInstruction
impl Debug for LabelledInstruction
source§impl Display for LabelledInstruction
impl Display for LabelledInstruction
source§impl Hash for LabelledInstruction
impl Hash for LabelledInstruction
source§impl PartialEq for LabelledInstruction
impl PartialEq for LabelledInstruction
source§fn eq(&self, other: &LabelledInstruction) -> bool
fn eq(&self, other: &LabelledInstruction) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for LabelledInstruction
impl StructuralPartialEq for LabelledInstruction
Auto Trait Implementations§
impl Freeze for LabelledInstruction
impl RefUnwindSafe for LabelledInstruction
impl Send for LabelledInstruction
impl Sync for LabelledInstruction
impl Unpin for LabelledInstruction
impl UnwindSafe for LabelledInstruction
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