conspire 0.7.2

The Rust interface to conspire.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use super::super::{AssertEq, eq_impl, eq_within_tols_impl};
use crate::math::TensorRank4;
use crate::math::assert::{Assert, AssertionError};

impl<const D: usize, const I: usize, const J: usize, const K: usize, const L: usize>
    AssertEq<TensorRank4<D, I, J, K, L>> for TensorRank4<D, I, J, K, L>
{
    fn eq(a: Self, b: TensorRank4<D, I, J, K, L>) -> Result<(), AssertionError> {
        eq_impl(&a, &b)
    }
    fn eq_within_tols(
        tols: &Assert,
        a: Self,
        b: TensorRank4<D, I, J, K, L>,
    ) -> Result<(), AssertionError> {
        eq_within_tols_impl(tols, &a, &b)
    }
}