rustc_middle::mir::traversal

Trait Customization

source
pub trait Customization<'tcx>: Copy {
    // Required method
    fn successors<'a>(_: &'a BasicBlockData<'tcx>, _: Self) -> Successors<'a>;
}
Expand description

Lets us plug in some additional logic and data into a Postorder traversal. Or not.

Required Methods§

source

fn successors<'a>(_: &'a BasicBlockData<'tcx>, _: Self) -> Successors<'a>

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.

Implementations on Foreign Types§

source§

impl<'tcx> Customization<'tcx> for (TyCtxt<'tcx>, Instance<'tcx>)

source§

fn successors<'a>( data: &'a BasicBlockData<'tcx>, (tcx, instance): (TyCtxt<'tcx>, Instance<'tcx>), ) -> Successors<'a>

source§

impl<'tcx> Customization<'tcx> for ()

source§

fn successors<'a>(data: &'a BasicBlockData<'tcx>, _: ()) -> Successors<'a>

Implementors§