Skip to main content

WalkDispatch

Trait WalkDispatch 

Source
pub trait WalkDispatch: Sized {
    // Required method
    fn dispatch_walk(
        &mut self,
        value: &VisitValue,
        def_region_kind: DefRegionKind,
    ) -> Option<WalkCallbackResult>;
}
Expand description

Dispatch for typed structural_walk observer callbacks.

None means that no handler matched. #[dispatch(walk)] generates this trait from source-ordered walk_* methods.

Required Methods§

Source

fn dispatch_walk( &mut self, value: &VisitValue, def_region_kind: DefRegionKind, ) -> Option<WalkCallbackResult>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<V: WalkDispatch> WalkDispatch for &mut V

Source§

fn dispatch_walk( &mut self, value: &VisitValue, def_region_kind: DefRegionKind, ) -> Option<WalkCallbackResult>

Implementors§