pub trait Source:
Send
+ Sync
+ Debug {
// Required method
fn content(&self) -> Box<&str>;
// Provided method
fn name(&self) -> Option<&str> { ... }
}Expand description
Defines a source file, which can be used to provide context for diagnostics.
This trait represents some sort of source code, which will be reported to the user as part of the reporting process.