Created
February 12, 2016 20:08
-
-
Save bltavares/37fd5d5fd4658da17572 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[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