3 ms·
1. Rust mimics math notation. 2. If one needs variable to hold a function, he declares it like this: let foo: fn(i32) -> i32 = ... The second colon would
by ordu 10y ago
1. Rust mimics math notation.
2. If one needs variable to hold a function, he declares it like this:
let foo: fn(i32) -> i32 = ...
The second colon would be confusing.