Closed neoneye closed 3 years ago
This is the joy of Rust. Unnecessarily verbose syntax justified as a way to be explicit, and sigils to make the code look like it's reserved to connoisseurs.
::<()>
works but the expected type here is the index type.
It works when using this syntax
let bitmap_size: usize = Bloom::<()>::compute_bitmap_size(1000, 0.1);
. However the syntax took me several attempts to get right.A more intuitive syntax could be something like this
However this doesn't compile