Skip to main content

NSuccsInterface

Trait NSuccsInterface 

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

Source

fn get_successor_i(&self, ctx: &Context, i: LessThanN<N>) -> Ptr<BasicBlock>

Get the i’th successor block.

Trait Implementations§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§