3 ms·
https://doc.rust-lang.org/reference/items/functions.html#const-functions https://doc.rust-lang.org/reference/items/functions.html#con... Basically, const funct
by dahfizz 6y ago
https://doc.rust-lang.org/reference/items/functions.html#const-functions https://doc.rust-lang.org/reference/items/functions.html#con...
Basically, const functions can be used in places regular functions can't because they are directly "run" by the compiler at compile time.