CodeRusty

This is a collection of snippets for Rust programming language.

Snippets

Snippet Description
pf Generate a public function
apf Generate a public async function
af Generate an async function
l Generate a let statement
lm Generate a let mut statement
pl Generate a public let statement
plm Generate a public let mut statement
il Generate an if let statement
le Generate a let else statement
m Generate a match statement
me Generate a match else statement
ie Generate an if else statement
iee Generate an if{} else if{} statement
ieee Generate an if{} else if{} else{} statement
f Generate a for statement
lp Generate a loop statement
w Generate a while statement
wl Generate a while let statement
pi Generate a public impl block
i Generate an impl block
pif Generate a public impl block for a trait
if Generate an impl block for a trait
pig Generate a public impl block with a generic
ig Generate an impl block with a generic
pigf Generate a public impl block with a generic for trait
igf Generate an impl block with a generic for trait
pigfw Generate a public impl block with a generic for trait with where
igfw Generate an impl block with a generic for trait with where
pt Generate a public trait block
t Generate a trait block
ptg Generate a public trait block with a generic
tg Generate a trait block with a generic
ptgw Generate a public trait block with a generic with where
tgw Generate a trait block with a generic with where
ps Generate a public struct
s Generate a struct
psg Generate a public struct with a generic
sg Generate a struct with a generic
psgw Generate a public struct with a generic with where
sgw Generate a struct with a generic with where
pe Generate a public enum
e Generate an enum
peg Generate a public enum with a generic
eg Generate an enum with a generic
ty Generate a type alias
pty Generate a public type alias