Skip to main content

SourceTrait

Trait SourceTrait 

Source
pub trait SourceTrait {
    type Code;

    // Required methods
    fn compile_source(&self, source: String) -> Result<Self::Code>;
    fn name_to_file(&self, root: &Path, name: &str) -> PathBuf;
}

Required Associated Types§

Required Methods§

Source

fn compile_source(&self, source: String) -> Result<Self::Code>

Source

fn name_to_file(&self, root: &Path, name: &str) -> PathBuf

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§