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§
fn compile_source(&self, source: String) -> Result<Self::Code>
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".