Small pieces of codes while learning Rust