Skip to content

Commit

Permalink
Merge pull request #53 from Tehforsch/reference-arithmetic
Browse files Browse the repository at this point in the history
Reference arithmetic
  • Loading branch information
Tehforsch authored Jan 7, 2024
2 parents a38256b + 29dd182 commit ba437be
Show file tree
Hide file tree
Showing 6 changed files with 969 additions and 701 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Diman is a library for zero-cost compile time unit checking.

```rust
# #![feature(generic_const_exprs)]
use diman::si::f64::{Length, Time, Velocity};

fn get_velocity(x: Length, t: Time) -> Velocity {
Expand Down
2 changes: 1 addition & 1 deletion crates/diman_unit_system/src/codegen/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ impl Defs {
self.vector_definitions(),
self.unit_constructors(),
self.qproduct_trait(),
self.numeric_traits(),
self.impl_numeric_traits(),
self.debug_trait(),
self.float_methods(),
self.vector_methods(),
Expand Down
Loading

0 comments on commit ba437be

Please sign in to comment.