3 ms·
For a constant like size_of, can you not eliminate the function call and make it a value? Just mem::size_of<T> ?
by MichaelGG 12y ago
For a constant like size_of, can you not eliminate the function call and make it a value? Just mem::size_of<T> ?
- pcwalton 12y agoNot without associated constants, which Rust does not yet support (and likely will not until after 1.0).
- pitterpatter 12y agosize_of isn't really a function but a compiler intrinsic.