pub enum BpfOperand {
Reg(RegId),
Imm(u64),
Mem(BpfOpMem),
Off(u32),
Mmem(u32),
Msh(u32),
Ext(u32),
Invalid,
}Expand description
BPF operand
Variants§
Reg(RegId)
Register
Imm(u64)
Immediate
Mem(BpfOpMem)
Memory
Off(u32)
Offset
Mmem(u32)
Mmem
Msh(u32)
Msh
Ext(u32)
Ext
Invalid
Invalid
Trait Implementations§
Source§impl Clone for BpfOperand
impl Clone for BpfOperand
Source§fn clone(&self) -> BpfOperand
fn clone(&self) -> BpfOperand
Returns a duplicate 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 BpfOperand
impl Debug for BpfOperand
Source§impl Default for BpfOperand
impl Default for BpfOperand
Source§impl From<&cs_bpf_op> for BpfOperand
impl From<&cs_bpf_op> for BpfOperand
Source§fn from(insn: &cs_bpf_op) -> BpfOperand
fn from(insn: &cs_bpf_op) -> BpfOperand
Converts to this type from the input type.
Source§impl From<BpfOperand> for ArchOperand
Available on crate feature arch_bpf only.
impl From<BpfOperand> for ArchOperand
Available on crate feature
arch_bpf only.Source§fn from(op: BpfOperand) -> ArchOperand
fn from(op: BpfOperand) -> ArchOperand
Converts to this type from the input type.
Source§impl PartialEq for BpfOperand
impl PartialEq for BpfOperand
impl Eq for BpfOperand
impl StructuralPartialEq for BpfOperand
Auto Trait Implementations§
impl Freeze for BpfOperand
impl RefUnwindSafe for BpfOperand
impl Send for BpfOperand
impl Sync for BpfOperand
impl Unpin for BpfOperand
impl UnwindSafe for BpfOperand
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