pub trait SourceCodeFactory {
// Required method
fn create_source(self, path: impl Into<PathBuf>) -> SourceCode;
}Expand description
Extension trait to create sources with names from strs, used in tests
Required Methods§
fn create_source(self, path: impl Into<PathBuf>) -> SourceCode
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.