Sha256: 3c2f6bdad23a7bdb307a77647dfe8cf1ed3377445be70e28eb2182fb5e01f353
Contents?: true
Size: 218 Bytes
Versions: 4
Compression:
Stored size: 218 Bytes
Contents
#[no_mangle] pub extern fn rust_arch_bits() -> i32 { use std::mem::size_of; let s = size_of::<usize>() * 8; s as i32 } #[test] fn it_is_32_or_64(){ assert!(rust_arch_bits() == 32 || rust_arch_bits() == 64); }
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
faster_path-0.1.13 | src/rust_arch_bits.rs |
faster_path-0.1.12 | src/rust_arch_bits.rs |
faster_path-0.1.11 | src/rust_arch_bits.rs |
faster_path-0.1.10 | src/rust_arch_bits.rs |