Rust code snippets and notes