Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Tips and Traps

  1. println is a macro (NOT a function) in Rust. A macro rule is invoke in the format macro_rule! to distinguish it from a regular function in Rust, so println is invoked as println!.

Format an integer to its binary representation.

"1111"
"0b1111"
(3, 4)
(
    3,
    4,
)

Positional Parameters

"2 1 1 2"

Named Parameters

Fill and Alignment

Formatting Parameters

1
()
1
()