Skip to main content

PathMaterializerFn

Type Alias PathMaterializerFn 

Source
pub type PathMaterializerFn = Box<dyn Fn(&str) -> String>;
Expand description

Callback type for redirecting a filesystem path before it is read.

Takes the path the evaluator names; returns the path the read should actually land on. Must be the identity for any path it does not own.

Aliased Typeยง

pub struct PathMaterializerFn(/* private fields */);