pijul_org / pijul

Implementing AsRef/AsMut for diffs::Replace

By blabla on December 20, 2018
This patch is not signed.
6dqHGNpTYbjXToLiAZnb3xP6KcLrkMr9ecLGP9sTAr8jc8JPxap9f1SWAayUoKSqSu6AhiCB92abrjZBxbvVbxoW
This patch is in the following branches:
latest
master
testing
25
26
27
28
29
30
31
32
33
34
35
36
37

impl<D: Diff> AsRef<D> for Replace<D> {
    fn as_ref(&self) -> &D {
        &self.d
    }
}

impl<D: Diff> AsMut<D> for Replace<D> {
    fn as_mut(&mut self) -> &mut D {
        &mut self.d
    }
}