NamespaceResolver

Trait NamespaceResolver 

Source
pub trait NamespaceResolver:
    Send
    + Sync
    + 'static {
    // Required method
    fn resolve(&self, path: &Path) -> NamespaceName;
}
Expand description

Translates a path to a namespace name

Required Methods§

Source

fn resolve(&self, path: &Path) -> NamespaceName

Implementors§

Source§

impl<F: Fn(&Path) -> NamespaceName + Send + Sync + 'static> NamespaceResolver for F