Skip to main content

BundleSlotView

Trait BundleSlotView 

Source
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§

Source

fn instruction_slots(&self) -> &BundleInstructionSlots

Returns the underlying fixed instruction slots.

Provided Methods§

Source

fn populated_count(&self) -> usize

Counts non-empty instruction slots.

Source

fn last_populated_index(&self) -> Option<usize>

Returns the index of the last non-empty slot.

Implementors§