pub trait ContentPatch {
// Required method
fn apply_exact(&self, orig: &[u8]) -> Result<Vec<u8>, ApplyError>;
}Expand description
A patch that can be applied to file content
Required Methods§
Sourcefn apply_exact(&self, orig: &[u8]) -> Result<Vec<u8>, ApplyError>
fn apply_exact(&self, orig: &[u8]) -> Result<Vec<u8>, ApplyError>
Apply this patch to a file