pub trait BlockContext:
Clone
+ Sync
+ Send
+ Sized {
type Instruction;
type InstructionIndex: Debug + From<u64>;
type Iter: Iterator<Item = Self::Instruction>;
// Required methods
fn start(&self, block: &BasicBlock<Self>) -> Self::Instruction;
fn iter(&self, block: &BasicBlock<Self>) -> Self::Iter;
}Required Associated Types§
type Instruction
type InstructionIndex: Debug + From<u64>
type Iter: Iterator<Item = Self::Instruction>
Required Methods§
fn start(&self, block: &BasicBlock<Self>) -> Self::Instruction
fn iter(&self, block: &BasicBlock<Self>) -> Self::Iter
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.