Our great sponsors
-
minijinja
MiniJinja is a powerful but minimal dependency template engine for Rust compatible with Jinja/Jinja2
-
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.
I published an earlier blog post about how you cannot do something in Rust. You can still find that earlier post on github if you want to see it (You can't Do That: Abstracting over Ownership in Rust with Type Inference)
If you wan't to know why I even dove down into this Rabbit hole: I wanted to enable borrowing for filter functions in MiniJinja. The PR has more context
Some compilers (like mrustc, e.g) just ignore their existence entirely. You certainly can not do that with types!