pub trait NSuccsInterface<const N: usize>: Op + BranchOpInterface {
// Provided method
fn get_successor_i(&self, ctx: &Context, i: LessThanN<N>) -> Ptr<BasicBlock> { ... }
}Expand description
An Op having exactly N successors. Successors are branch targets, so this
requires BranchOpInterface (which separately checks the forwarded operands
against each target block’s arguments).
Provided Methods§
Sourcefn get_successor_i(&self, ctx: &Context, i: LessThanN<N>) -> Ptr<BasicBlock>
fn get_successor_i(&self, ctx: &Context, i: LessThanN<N>) -> Ptr<BasicBlock>
Get the i’th successor block.
Trait Implementations§
impl<const N: usize> OpInterfaceMarker for dyn NSuccsInterface<N>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".