3 ms·
Newtypes are actually zero overhead abstractions; one prominent example of Newtype is the structs Instant and Duration from std::time: https://doc.rust-lang.org
by Inityx 8y ago
Newtypes are actually zero overhead abstractions; one prominent example of Newtype is the structs Instant and Duration from std::time: https://doc.rust-lang.org/std/time/index.html https://doc.rust-lang.org/std/time/index.html
- dilap 8y agoah, i meant heavyweight (middle-weight, maybe) in terms of programmer-effort / ergonomics. i know rust is all about zero-runtime-cost abstractions :-)