issues
search
rust-unofficial
/
patterns
A catalogue of Rust design patterns, anti-patterns and idioms
https://rust-unofficial.github.io/patterns/
Mozilla Public License 2.0
8.11k
stars
375
forks
source link
issues
Newest
Newest
Most commented
Recently updated
Oldest
Least commented
Least recently updated
Inspiration for more patterns
#35
killercup
closed
3 years ago
10
Fix a few nits.
#34
CasualX
closed
8 years ago
1
Mention Option::take() as an alternative to mem::replace()
#33
partim
closed
8 years ago
1
Prepending _ to field name avoids unused field warning
#32
KamilaBorowska
closed
8 years ago
1
new idiom: mem::replace
#31
llogiq
closed
8 years ago
2
Prefer small crates
#30
lambda-fairy
closed
8 years ago
1
Use coercion for arguments
#29
cbreeden
closed
3 years ago
7
Clone to closure idiom
#28
kriomant
closed
8 years ago
2
Using `&str` vs using `&String`
#27
cbreeden
closed
3 years ago
2
New maintainer
#26
cbreeden
closed
8 years ago
9
Add "Treating Option like a list"
#25
lambda-fairy
closed
8 years ago
3
Collecting into a Result or Option
#24
lambda-fairy
opened
8 years ago
1
Adding 'clone to satisfy the borrow checker' anti-pattern
#23
liamzdenek
closed
3 years ago
6
Adding catch_panic anti-pattern
#22
liamzdenek
closed
3 years ago
4
Builder pattern: discuss merits of `self` vs `&self` for .build()
#21
dodecahedral-champion
opened
8 years ago
4
PhantomData and ZSTs as an anti-pattern
#20
sgrif
opened
8 years ago
2
Anti-pattern std::sync::Once
#19
Sean1708
opened
8 years ago
1
Deref polymorphism anti-pattern
#18
nrc
closed
9 years ago
0
Add examples for each pattern
#17
iluxonchik
closed
3 years ago
3
Result + try! is a pattern, unwrap() is not
#16
oli-obk
closed
9 years ago
1
improve comment
#15
liigo
closed
9 years ago
2
improve comments
#14
liigo
closed
9 years ago
0
fix compile error in comment
#13
liigo
closed
9 years ago
2
Fix typo in `.with_attribute` call.
#12
jsanders
closed
9 years ago
1
Address issues from the reddit thread
#11
nrc
closed
3 years ago
2
Fix a minor typo s/he/the/
#10
stevegury
closed
9 years ago
1
Fix typo
#9
aochagavia
closed
9 years ago
1
Anti-Pattern: Intermediate `collect()`ion
#8
llogiq
opened
9 years ago
7
Add syntax highlighting
#7
fphilipe
closed
9 years ago
1
Convert this to a gitbook/mdbook
#6
dumindu
closed
3 years ago
4
Generic type constructors
#5
jdm
opened
9 years ago
0
Introduction is empty
#4
MattWis
closed
3 years ago
1
Fix RAII Guards
#3
MattWis
closed
9 years ago
1
Composing structs
#2
nrc
closed
8 years ago
3
Add all TODO patterns as issues
#1
nrc
closed
3 years ago
2
Previous