Trait SpannedTypeVisitor

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

    // Required method
    fn visit(
        &mut self,
        span: Span,
        value: impl TypeVisitable<TyCtxt<'tcx>>,
    ) -> Self::Result;
}

Provided Associated Types§

Required Methods§

Source

fn visit( &mut self, span: Span, value: impl TypeVisitable<TyCtxt<'tcx>>, ) -> Self::Result

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.

Implementors§