pub trait InstructionCollectionExt<I: Instruction> {
// Required methods
fn to_bytes(&self) -> Vec<u8> ⓘ;
fn total_size(&self) -> usize;
}
Expand description
Trait extension for instruction collections
This allows you to call .to_bytes()
and .total_size()
directly on slices and vectors
Required Methods§
Sourcefn total_size(&self) -> usize
fn total_size(&self) -> usize
Get the total size in bytes of all instructions