Merge pull request #464 from hannobraun/scalar

Implement `fmt::Display` for `Scalar`
This commit is contained in:
Hanno Braun 2022-04-12 16:47:12 +02:00 committed by GitHub
commit cdb259f6b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;