66
What are some mind blowing Rust tricks?
(programming.dev)
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Credits
Yeah I don't mean just terse functional idioms. Any programming technique that blew your mind the first time you came across it would qualify.
Type guards, then :) very cool, much compiler power, love it
Do you mean RAII guards
https://rust-unofficial.github.io/patterns/patterns/behavioural/RAII.html
Or match guards?
https://doc.rust-lang.org/rust-by-example/flow_control/match/guard.html
Maybe they're referring to "where clauses"?
Indeed I am. Forgot the name, lol, not worked with rust for a few months ๐