Optimising my Rust solutions for Advent of Code

I completed Advent of Code 2024 in Rust. Here are all the tricks I used to optimise my code.