Skip to main content

BindingDispatcher

Type Alias BindingDispatcher 

Source
pub type BindingDispatcher = Rc<dyn Fn(&str) -> Option<Result<()>>>;
Expand description

A compiled-binding dispatcher: given a request name, either declines (None, so the next resolution tier is tried) or reports the load outcome (Some(Ok(())) / Some(Err(_))). It resolves compiled-in bindings, which have no source file, so it carries no path — the load note announces such a binding by its module-proxy name (<name>_sty.rs).

Aliased Type§

pub struct BindingDispatcher { /* private fields */ }