-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
proc-macro-workshop
Learn to write Rust procedural macros [Rust Latam conference, Montevideo Uruguay, March 2019]
The definitive solution will probably come when RFC 2089 (implied_bounds) will be implemented. I think the necessary work has already be done in chalk, so you'll probably just have to wait until chalk will be fully integrated in rustc (don't quote me on that though).
The num crate is worth a look - they do implement some of these things via macros. https://github.com/rust-num/num
edit: See for example https://github.com/rust-num/num-bigint/blob/7562ab24330792817e42b808f60b0cac51ca261a/src/macros.rs
I've also hit this issue while writing code generic over prime fields by-reference. I ended up defining traits FieldLike and RefFieldLike and anotating all functions as
https://github.com/derekdreery/style ?
https://github.com/dtolnay/proc-macro-workshop Is amazing as well.