python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Good server architecture for publishing/subscribing in Rust
I'm trying to implement a server in Rust and I wonder if I'm missing something to make it less complex. The simplification of my project would be that I want to have different clients connected to a s...
Pascualex
Votes: 0
Answers: 1
References and move vs. copy
I'm reading through chapter 4 of the Rust book, coming from a Python background.
What confuses me a bit is that this doesn't compile:
fn do_something(s3: String) {
println!("{}", s3);
}
...

Cartucho
Votes: 0
Answers: 1
Ownership problem with char to string conversion
My failing code (Minimal, Reproducible Example):
// my code
fn test() {
let mut list: Vec<Text> = Vec::new();
const ARRAY: [char; 3] = ['a', 'b', 'c'];
for (i, _) in ARRAY.iter().en...
balanceglove2
Votes: 0
Answers: 2