pub trait EdgeBuilder: Send + Sync {
// Required method
fn build(
&self,
fragments: &[Fragment],
repo_root: Option<&Path>,
) -> EdgeDict;
// Provided methods
fn discover_related_files(
&self,
_changed: &[PathBuf],
_candidates: &[PathBuf],
_repo_root: Option<&Path>,
_file_cache: Option<&FxHashMap<PathBuf, String>>,
) -> Vec<PathBuf> { ... }
fn category_label(&self) -> Option<&str> { ... }
fn is_expensive(&self) -> bool { ... }
fn is_fallback(&self) -> bool { ... }
}Required Methods§
Provided Methods§
fn category_label(&self) -> Option<&str>
fn is_expensive(&self) -> bool
Sourcefn is_fallback(&self) -> bool
fn is_fallback(&self) -> bool
A coverage-of-last-resort builder: its edges only count where the dedicated builders produced nothing. The dual-coverage attempt this gate encodes was measured as a 100% noise regression (#131) — tags edges duplicating real semantic edges add no reach, only mass.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".