mirror of
https://github.com/hannobraun/Fornjot
synced 2025-02-12 10:15:51 +00:00
Implement fmt::Display
for Scalar
This commit is contained in:
parent
b15a5f8766
commit
1bc063fc21
@ -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