Skip to main content

ProofTreeVisitor

Trait ProofTreeVisitor 

Source
pub trait ProofTreeVisitor<'tcx> {
    type Result: VisitorResult = ();

    // Required methods
    fn span(&self) -> Span;
    fn visit_goal(&mut self, goal: &InspectGoal<'_, 'tcx>) -> Self::Result;

    // Provided method
    fn config(&self) -> InspectConfig { ... }
}
Expand description

The public API to interact with proof trees.

Provided Associated Types§

Required Methods§

Source

fn span(&self) -> Span

Source

fn visit_goal(&mut self, goal: &InspectGoal<'_, 'tcx>) -> Self::Result

Provided Methods§

Implementors§

Source§

impl<'a, 'tcx> ProofTreeVisitor<'tcx> for AmbiguityCausesVisitor<'a, 'tcx>

Source§

impl<'tcx> ProofTreeVisitor<'tcx> for BestObligation<'tcx>

Source§

type Result = ControlFlow<Obligation<'tcx, Predicate<'tcx>>>

Source§

impl<'tcx> ProofTreeVisitor<'tcx> for Select

Source§

type Result = ControlFlow<Result<Option<ImplSource<'tcx, Obligation<'tcx, Predicate<'tcx>>>>, SelectionError<'tcx>>>

Source§

impl<'tcx> ProofTreeVisitor<'tcx> for StalledOnCoroutines<'tcx>