pub trait Source {
// Required methods
fn sourcemap(&self) -> Option<&SourceMap>;
fn content(&self) -> &str;
// Provided method
fn lines_count(&self) -> u32 { ... }
}pub trait Source {
// Required methods
fn sourcemap(&self) -> Option<&SourceMap>;
fn content(&self) -> &str;
// Provided method
fn lines_count(&self) -> u32 { ... }
}