|
Firefox has been shipping a Rust MP4 container parser for a while now.
|
# ¿ Oct 2, 2017 02:33 |
|
|
# ¿ Apr 29, 2024 11:47 |
|
const test: f64 = 1. * 10.; works because you aren't trying to call a method on an unknown type. const ELECTRON_MASS: f64 = 9.109390 * (10.).powi(-31); fails because you're trying to do a method lookup on some kind of floating point type, but the compiler doesn't know which one yet, hence the error. If you change it to something that isn't ambiguous, like const ELECTRON_MASS: f64 = 9.109390 * 10.0f64.powi(-31);, the error becomes code:
|
# ¿ Sep 28, 2018 00:28 |
|
std::vec::Vec::into_boxed_slice()
|
# ¿ May 20, 2022 01:28 |
|
notwithoutmyanus posted:I'm trying to wrap my head around this: Arrays are zero-based, the element at offset 2 is the third element in the array.
|
# ¿ Oct 26, 2023 02:37 |
|
BitTorrent uses Bencode and Bencode already has a serde implementation. It’s really easy to use a serialization library with a serialization format, especially when the work has already been done for you. Not so much for ad hoc bit twiddling.
|
# ¿ Dec 16, 2023 21:27 |