Skip to main content

SourceCodeFactory

Trait SourceCodeFactory 

Source
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§

Source

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.

Implementations on Foreign Types§

Source§

impl SourceCodeFactory for &str

Source§

fn create_source(self, path: impl Into<PathBuf>) -> SourceCode

Implementors§