minus-squareThinker@lemmy.worldtoRust@programming.dev•What are some mind blowing Rust tricks?linkfedilinkarrow-up6·20 days agoThis could be done almost trivially using the typestate pattern: https://zerotomastery.io/blog/rust-typestate-patterns/. linkfedilink
This could be done almost trivially using the typestate pattern: https://zerotomastery.io/blog/rust-typestate-patterns/.