mirror of
https://github.com/hannobraun/Fornjot
synced 2025-02-07 15:55:53 +00:00
Merge pull request #464 from hannobraun/scalar
Implement `fmt::Display` for `Scalar`
This commit is contained in:
commit
cdb259f6b5
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user