pub struct SwapBytes<'i> { /* private fields */ }
Expand description
struct representation of byte swap operation
Implementations§
Trait Implementations§
Source§impl Instruction for SwapBytes<'_>
impl Instruction for SwapBytes<'_>
Source§fn opt_code_byte(&self) -> u8
fn opt_code_byte(&self) -> u8
returns instruction opt code
Source§fn get_insn_mut(&mut self) -> &mut Insn
fn get_insn_mut(&mut self) -> &mut Insn
get mutable
ebpf::Insn
structAuto Trait Implementations§
impl<'i> Freeze for SwapBytes<'i>
impl<'i> RefUnwindSafe for SwapBytes<'i>
impl<'i> Send for SwapBytes<'i>
impl<'i> Sync for SwapBytes<'i>
impl<'i> Unpin for SwapBytes<'i>
impl<'i> !UnwindSafe for SwapBytes<'i>
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