Skip to main content

ContentPatch

Trait ContentPatch 

Source
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§

Source

fn apply_exact(&self, orig: &[u8]) -> Result<Vec<u8>, ApplyError>

Apply this patch to a file

Implementors§