Skip to content

Commit

Permalink
feat(languages): improve rust language
Browse files Browse the repository at this point in the history
Remove arbitrary identifiers and primitives,
and add a few more common words.
  • Loading branch information
max-niederman committed Sep 29, 2023
1 parent 237223e commit a045a4e
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions resources/runtime/language/rust
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ match
->
Option
Result
Some(T)
Some
None
Ok(T)
Err(E)
Ok
Err
mod
move
mut
Expand All @@ -47,8 +47,8 @@ use
where
while
panic!()
println!("{}", T)
(T, E)
println!
dbg!
u8
u16
u32
Expand All @@ -63,29 +63,36 @@ i128
isize
bool
char
str
&str
Vec::new()
Vec<T>
Vec<_>
vec![]
HashMap
String
String::from("monkeytype")
collect::<Vec<i32>>()
Vec::new()
collect::<Vec<_>>()
::<>
box
lazy_static
iter()
filter(|x| x.is_ok())
<'a>
<'_>
map
BTreeMap
VecDeque
LinkedList
HashSet
&'static
&'_
..
..=
?
macro_rules!
{:?}
format!
unwrap()
#[derive(Debug, Clone)]
#[test]
///
//!
//

0 comments on commit a045a4e

Please sign in to comment.