pub trait Sources {
// Required method
fn read(&self, path: &Path) -> Result<String>;
// Provided method
fn same_file(&self, a: &Path, b: &Path) -> bool { ... }
}Expand description
Where analyze reads a module’s text.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".