Skip to main content

ReadMode

Trait ReadMode 

Source
pub trait ReadMode: Send + Sync {
    // Required methods
    fn name(&self) -> &str;
    fn render(&self, source: &str, path: &str) -> String;
}
Expand description

A named read-mode renderer operating on a file’s source + path.

Required Methods§

Source

fn name(&self) -> &str

Stable registry name.

Source

fn render(&self, source: &str, path: &str) -> String

Render the read output for source at path.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§