endianbytes 0.2.0
“An implementation of upcoming rust feature read_le_be, and a write variant too.”
Reads a Rust environment variableRust integer to big-endian bytes
SHA-2567fe2c48a47216a6e9ee6b03fe18e4f121caebb99eccd9132e60137d3cfea8dac
MaleculeH₂(DbOs)
Evidence
257:40… ut impl Write) -> IoResult<()> {
258 let buf = self.to_be_bytes();
259 w.write_all(&buf)
260 }
261 #[inline]
262 fn write_ne_to(&self, w: &mut impl Write) -> …
1pub fn main() {
2 // This is a trick to enable the f16 and f128 features whenever
3 // this crate is built on nightly
4 if let Ok(toolchain) = std::env::var("RUSTUP_TOOLCHAIN") {
5 if toolchain.starts_with("nightly") {
6 println!("cargo:rustc-cfg=nightly");
7 …
No evidence locations were recorded for this file. Raw result