pub trait BundleSlotView {
// Required method
fn instruction_slots(&self) -> &BundleInstructionSlots;
// Provided methods
fn populated_count(&self) -> usize { ... }
fn last_populated_index(&self) -> Option<usize> { ... }
}Expand description
Shared view over fixed instruction slots.
Required Methods§
Sourcefn instruction_slots(&self) -> &BundleInstructionSlots
fn instruction_slots(&self) -> &BundleInstructionSlots
Returns the underlying fixed instruction slots.
Provided Methods§
Sourcefn populated_count(&self) -> usize
fn populated_count(&self) -> usize
Counts non-empty instruction slots.
Sourcefn last_populated_index(&self) -> Option<usize>
fn last_populated_index(&self) -> Option<usize>
Returns the index of the last non-empty slot.