Magic Completions in rust-analyzer
(a Language Server Protocol implementation for Rust), https://rust-analyzer.github.io/book/features.html#magic-completions.
- expr.if
expands to if expr { }
or if let … { }
for Option
or Result
- expr.dbg
expands to dbg!(expr)
- expr.match
expands to match expr { … }
- tmod
expands to #[cfg(test)] mod tests { use super::*; #[test] fn test_name() { } }