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: Instruction> IntoBytes for &I
General implementation of IntoBytes
for Instruction
impl<I: Instruction> IntoBytes for &I
General implementation of IntoBytes
for Instruction