Various functions for calculating size etc. can be used at compile time, and should probably be made const fn once support is added to the stable compiler (see rust-lang/rust#24111). There's no benefit to doing this before it hits the stable compiler really - there should be no significant/useful performance impact.
Various functions for calculating size etc. can be used at compile time, and should probably be made const fn once support is added to the stable compiler (see rust-lang/rust#24111). There's no benefit to doing this before it hits the stable compiler really - there should be no significant/useful performance impact.