pub enum LabelledInstruction {
Instruction(AnInstruction<String>),
Label(String),
Breakpoint,
TypeHint(TypeHint),
AssertionContext(AssertionContext),
}
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)
AssertionContext(AssertionContext)
Implementations§
Source§impl LabelledInstruction
impl LabelledInstruction
pub 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§fn size_hint(depth: usize) -> (usize, Option<usize>)
fn size_hint(depth: usize) -> (usize, Option<usize>)
Get a size hint for how many bytes out of an
Unstructured
this type
needs to construct itself. Read moreSource§fn try_size_hint(
depth: usize,
) -> Result<(usize, Option<usize>), MaxRecursionReached>
fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>
Get a size hint for how many bytes out of an
Unstructured
this type
needs to construct itself. 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
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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