EncoderContextProvider

Trait EncoderContextProvider 

Source
pub trait EncoderContextProvider {
    // Required method
    fn contents<P>(&mut self, path: P) -> Result<String>
       where P: AsRef<str>;
}
Expand description

Encoding provider that will convert paths into file contents

Required Methods§

Source

fn contents<P>(&mut self, path: P) -> Result<String>
where P: AsRef<str>,

Fetch the contents of a given path

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<V> EncoderContextProvider for HashMap<String, V>
where V: AsRef<str>,

Source§

fn contents<P>(&mut self, path: P) -> Result<String>
where P: AsRef<str>,

Implementors§