comparable 0.5.6

A library for comparing data structures in Rust, oriented toward testing
Documentation
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)
	}
}