Function tor_consdiff::apply_diff [−][src]
pub fn apply_diff<'a>(
input: &'a str,
diff: &'a str,
check_digest_in: Option<[u8; 32]>
) -> Result<DiffResult<'a>, Error>
Expand description
Apply a given diff to an input text, and return the result from applying that diff.
If check_digest_in
is provided, require the diff to say that it
applies to a document with the provided digest.