feat: Add is_internal method to CompressionEngine trait

Co-authored-by: aider (openai/andrew/openrouter/sonoma-sky-alpha) <aider@aider.chat>
This commit is contained in:
Andrew Phillips
2025-09-11 10:57:48 -03:00
parent 358df8acea
commit 08b5f284d3

View File

@@ -110,6 +110,18 @@ pub trait CompressionEngine {
true true
} }
/// Checks if this compression engine is internal (built-in) or external (program-based).
///
/// Internal engines use Rust implementations without external dependencies.
/// External engines rely on system programs.
///
/// # Returns
///
/// * `bool` - True if internal, false if external.
fn is_internal(&self) -> bool {
true
}
/// Gets status information for this compression engine. /// Gets status information for this compression engine.
/// ///
/// Provides details about the binary/program used and compression/decompression commands. /// Provides details about the binary/program used and compression/decompression commands.