pub trait Source: Send + Sync {
// Required methods
fn id(&self) -> &'static str;
fn label(&self) -> &'static str;
fn detect(&self, repo_root: &Path) -> bool;
fn read(&self, repo_root: &Path) -> Result<Vec<MemoryDoc>, CoreError>;
}Required Methods§
fn id(&self) -> &'static str
fn label(&self) -> &'static str
fn detect(&self, repo_root: &Path) -> bool
fn read(&self, repo_root: &Path) -> Result<Vec<MemoryDoc>, CoreError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".