pub trait SimpleDomain:
Send
+ Sync
+ 'static {
// Required methods
fn name(&self) -> &'static str;
fn description(&self) -> &'static str;
fn matches(&self, repo_path: &Path) -> bool;
// Provided method
fn base_capabilities(&self) -> CapabilitySet { ... }
}Expand description
Extension trait for domains with simple boolean detection
Implement this trait for domains where detection is a simple boolean check.
The blanket implementation will automatically implement Domain for you,
converting matches() to DetectionResult.
Required Methods§
Sourcefn description(&self) -> &'static str
fn description(&self) -> &'static str
Human-readable description
Provided Methods§
Sourcefn base_capabilities(&self) -> CapabilitySet
fn base_capabilities(&self) -> CapabilitySet
Base capabilities this domain provides when detected