Implement fmt::Display for Scalar

This commit is contained in:
Hanno Braun 2022-04-12 16:14:01 +02:00
parent b15a5f8766
commit 1bc063fc21

View File

@ -512,6 +512,12 @@ impl fmt::Debug for Scalar {
}
}
impl fmt::Display for Scalar {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.0.fmt(f)
}
}
impl approx::AbsDiffEq for Scalar {
type Epsilon = <f64 as approx::AbsDiffEq>::Epsilon;