Skip to main content

Dispatcher

Trait Dispatcher 

Source
pub trait Dispatcher<Args, Ret> {
    // Required method
    fn dispatch_tuple(self, args: Args) -> Ret;
}
Expand description

A handler that the structural traversals call with a tuple of arguments.

See also #[dispatch].

Required Methods§

Source

fn dispatch_tuple(self, args: Args) -> Ret

Dispatch on args.0 with the complete argument tuple args.

§Arguments
  • args - The argument tuple, whose first element is the value to dispatch on.
§Returns

Some of the matched handler’s result, or None when no handler matches.

Implementors§