1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
use crate::types::{Changed, Comparable};

impl<T: Comparable> Comparable for Box<T> {
    type Desc = T::Desc;

    fn describe(&self) -> Self::Desc {
        self.as_ref().describe()
    }

    type Change = T::Change;

    fn comparison(&self, other: &Self) -> Changed<Self::Change> {
        self.as_ref().comparison(&*other)
    }
}