Skip to main content

GrammarLoader

Trait GrammarLoader 

pub trait GrammarLoader: Send + Sync {
    // Required method
    fn read(&self, base: Option<&str>, path: &str) -> Option<(String, String)>;
}
Expand description

One %import source. Returns (joined_path, text) — the joined path threads back as the base for nested imports — or None = try the next source (mirrors except IOError: continue).

Required Methods§

fn read(&self, base: Option<&str>, path: &str) -> Option<(String, String)>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§