Skip to main content

RulesHook

Type Alias RulesHook 

Source
pub type RulesHook<'h> = dyn FnMut(&str, &[u8]) -> Result<BackendDescriptor, String> + 'h;
Expand description

Derives a rules program’s descriptor from its bytes; the host owns the rules backend (spec 027, 3.3.2).