Skip to content

Instantly share code, notes, and snippets.

@bltavares
Created February 12, 2016 20:08
Show Gist options
  • Save bltavares/37fd5d5fd4658da17572 to your computer and use it in GitHub Desktop.
Save bltavares/37fd5d5fd4658da17572 to your computer and use it in GitHub Desktop.
#[derive(Eq, PartialEq, Debug)]
pub struct Diff<'a> {
content: &'a str,
file_points: Box<[File<'a>]>,
}
#[derive(Eq, PartialEq, Debug)]
pub struct OwnedDiff {
content: String,
}
impl std::ops::Deref for OwnedDiff {
type Target = Diff<'a>;
fn deref(&self) -> &'a Diff<'a> {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment