Skip to main content

Source

Trait Source 

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

Source

fn id(&self) -> &'static str

Source

fn label(&self) -> &'static str

Source

fn detect(&self, repo_root: &Path) -> bool

Source

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".

Implementors§