pub enum DelaySlotArg {
Bytes(u64),
Field(FieldId),
Deferred(Box<str>),
}Expand description
The minimum number of delay-slot bytes a delayslot(n) directive asks for.
SLEIGH counts bytes, not instructions: whole instructions are parsed after
the current one until at least this many bytes have been consumed.
delayslot(1) is the idiom for “exactly one following instruction”.
Variants§
Bytes(u64)
A literal byte count.
Field(FieldId)
A field whose decoded value is the byte count — pi32v2’s rep computes
one in its disassembly action.
Deferred(Box<str>)
A name that was not a known symbol during Phase 2 parsing. Resolved to
DelaySlotArg::Field by the Phase 3 resolve pass.
Trait Implementations§
Source§impl Clone for DelaySlotArg
impl Clone for DelaySlotArg
Source§fn clone(&self) -> DelaySlotArg
fn clone(&self) -> DelaySlotArg
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DelaySlotArg
impl Debug for DelaySlotArg
Source§impl<'de> Deserialize<'de> for DelaySlotArg
impl<'de> Deserialize<'de> for DelaySlotArg
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DelaySlotArg
Source§impl PartialEq for DelaySlotArg
impl PartialEq for DelaySlotArg
Source§impl Serialize for DelaySlotArg
impl Serialize for DelaySlotArg
impl StructuralPartialEq for DelaySlotArg
Auto Trait Implementations§
impl Freeze for DelaySlotArg
impl RefUnwindSafe for DelaySlotArg
impl Send for DelaySlotArg
impl Sync for DelaySlotArg
impl Unpin for DelaySlotArg
impl UnsafeUnpin for DelaySlotArg
impl UnwindSafe for DelaySlotArg
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