pub trait Callback {
    type Res;
    type Cfg;

    fn call<T: ParserTrait>(cfg: Self::Cfg, parser: &T) -> Self::Res;
}
Expand description

A trait for callback functions.

Allows to call a private library function, getting as result its output value.

Required Associated Types§

The output type returned by the callee

The input type used by the caller to pass the arguments to the callee

Required Methods§

Calls a function inside the library and returns its value

Implementors§