Trait solana_rbpf::insn_builder::IntoBytes
source · pub trait IntoBytes {
type Bytes;
// Required method
fn into_bytes(self) -> Self::Bytes;
}
Expand description
General trait for Instruction
s and BpfCode
.
Provides functionality to transform struct
into collection of bytes
Required Associated Types§
Required Methods§
sourcefn into_bytes(self) -> Self::Bytes
fn into_bytes(self) -> Self::Bytes
consume Self
with transformation into Self::Bytes
Implementations on Foreign Types§
source§impl<'i, I: Instruction> IntoBytes for &'i I
impl<'i, I: Instruction> IntoBytes for &'i I
General implementation of IntoBytes
for Instruction