nandi/rustnimpublic Fork 0
ae9f986fc43d0fc9ab029946e2c7a25cdc72b4ed
Commits
Clone
git clone https://git.rickub.com/nandi/rustnim.git
git clone ssh://git@rickub.com/nandi/rustnim.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Add the differential test runner, and a lowering to measure with it 8ac32af · on ae9f986fc43d0fc9ab029946e2c7a25cdc72b4ed · nandithebull · 10h ago
007-format-specs.rs · 11 lines · 350 BRust Blame HistoryRaw
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
fn main() {
    println!("{:x} {:X} {:b} {:o}", 255u32, 255u32, 5u8, 64u16);
    println!("{:02x}{:02x}", 1u8, 254u8);
    println!("{:08b}", 5u8);
    println!("[{:5}]", 42i32);
    println!("{0} {1} {0}", 1i32, 2i32);
    let name: i32 = 7;
    println!("inline {name}");
    println!("{{literal}}");
    println!("{:?} {:?}", "quoted\n", true);
}