Time for something different!
How tools map from Java to Rust
|
|
|
---|
Compiler | rustc | javac |
working with dependencies and projects, package manager, build system | cargo | maven, gradle, ivy |
official linter | clippy |
|
THE package repository? (for dependencies) | Crates.io | Maven Central |
official code formatter | rustfmt | |
How collections map from Rust to Java
Collection | Rust | Java |
---|
dynamic, growable array | Vec<T> | ArrayList |
double-ended queue | VecDeque<T> | ArrayDeque |
doubly linked list | LinkedList<T> | LinkedList |
Max heap | BinaryHeap<T> where T: Ord | PriorityQueue |
dictionary (key-value table) | HashMap<K, V> where K: Eq+Hash | HashMap |
sorted dictionary (key-value table) | BTreeMap<K, V> where K: Ord | TreeMap |
Hashtable | HashSet<T> where T: Eq+Hash | HashSet |
sorted set | BTreeSet<T> where T: Ord | TreeSet |
What else?