//! patch Operation method trait for the module. use crate::patch::types::{ApplyResult, ParsedPatch, Patch}; /// Operation trait for the patch module. pub trait PatchOps { /// Generate a unified diff patch. fn patch_generate(&self, base: &str, head: &str) -> Result; /// Parse a patch. fn patch_parse(&self, content: &str) -> Result; /// Apply a patch. fn patch_apply(&self, patch: &str, base: &str) -> Result; }