Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 138084

Rust is a systems programming language focused on three goals: safety, speed, and concurrency. It maintains these goals without needing a garbage collector, making it a useful language for a number of use cases other languages aren't good at: embedding in other languages, programs with specific space and time requirements, and writing low-level code, like device drivers and operating systems.

2 votes
0 answers
98 views

Rust - LFU cache

I have implemented an LFU cache and I'm looking for ways to make my code more idiomatic. [dependencies] linked_hash_set = "0.1.3" //! A Least Frequently Used Cache implementation //! //! //! //! …
nz_21's user avatar
  • 1,031
3 votes
1 answer
1k views

Rust dynamic programming : word break

In python, I would've simply created a recursive nested function, which would have captured outer variables; rust doesn't allow for recursive closures, as a closure is an unnamed struct. …
nz_21's user avatar
  • 1,031
6 votes
1 answer
143 views

Rust Spelling corrector

It's been about a day since I've started writing some Rust, and I'm looking for some code review on a simple spell checker I've written up use generator::{Gn, Generator, Scope, done}; use std::collections …
nz_21's user avatar
  • 1,031
5 votes
1 answer
1k views

Rust Torrent Parser

It's my first time writing anything >50 lines in rust, so I'm looking for improvements :) use std::collections::BTreeMap; use bencode::{Bencode, Encoder}; use bencode::util::ByteString; #[derive(Default …
nz_21's user avatar
  • 1,031