conspire/math/assert/eq/owned/rank_0.rs
1use super::super::{AssertEq, eq_impl, eq_within_tols_impl};
2use crate::math::TensorRank0;
3use crate::math::assert::{Assert, AssertionError};
4
5impl AssertEq<TensorRank0> for TensorRank0 {
6 fn eq(a: Self, b: TensorRank0) -> Result<(), AssertionError> {
7 eq_impl(&a, &b)
8 }
9 fn eq_within_tols(tols: &Assert, a: Self, b: TensorRank0) -> Result<(), AssertionError> {
10 eq_within_tols_impl(tols, &a, &b)
11 }
12}