Expand description
Representation of all the differences between two files
Implementations
Parse a Patch
from a string
use diffy::Patch;
let s = "\
--- a/ideals
+++ b/ideals
@@ -1,4 +1,6 @@
First:
Life before death,
strength before weakness,
journey before destination.
+Second:
+ I will protect those who cannot protect themselves.
";
let patch = Patch::from_str(s).unwrap();
Trait Implementations
Auto Trait Implementations
impl<'a, T: ?Sized> RefUnwindSafe for Patch<'a, T> where
T: RefUnwindSafe,
<T as ToOwned>::Owned: RefUnwindSafe,
impl<'a, T: ?Sized> UnwindSafe for Patch<'a, T> where
T: RefUnwindSafe,
<T as ToOwned>::Owned: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more