no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | snippets:rust:start [2019/11/18 05:12] (current) – Add Rust snippets spotlightkid | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Collection of Snippets for Rust ====== | ||
+ | |||
+ | Just copy the '' | ||
+ | |||
+ | |||
+ | <code properties> | ||
+ | [Rust] | ||
+ | enum=enum %cursor% {\n\t%cursor%, | ||
+ | fn=fn %cursor%() {\n\t%cursor%\n}\n | ||
+ | for=for elem in %cursor% {\n\t%cursor%\n}\n | ||
+ | ife=if %cursor% {\n\t%cursor%\n} else {\n\t%cursor%\n}\n | ||
+ | if=if %cursor% {\n\t%cursor%\n}\n | ||
+ | loop=loop {\n\t%cursor%\n}\n | ||
+ | main=fn main() {\n\t%cursor%\n}\n | ||
+ | match=let %cursor% = match %cursor% {\n\tOk(%cursor%) => %cursor%, | ||
+ | print=println!(" | ||
+ | std=use std:: | ||
+ | while=while %cursor% {\n\t%cursor%\n}\n | ||
+ | </ | ||
+ | |||
+ | |||
+ | {{tag> | ||