Questions tagged as 'rust'

2
answers

What does "re:" and "im:" mean in Rust?

I want to know what re and im mean / do let mut z = Complex { re: 0.0, im: 0,0 }; I'm learning Rust from the Programming Rust book, and this re: and im: should have already appeared before, but just now I've both...
asked by 03.12.2018 / 13:53
2
answers

How to iterate correctly all the records of a structure with multiple depth levels in Rust?

I would like to know how to iterate correctly in Rust all the results contained in a data structure arranged like this: struct Node { id: i64, nodes: Vec<Node> } Where records entered in this structure have several levels of d...
asked by 13.12.2017 / 06:57
1
answer

Error installing Rust on windows 10

I'm taking my first steps in language. I have read a lot of the documentation and decided to install it on my machine. I downloaded rustup-init here . However, when I run the installer I get the following error: error: could not download...
asked by 30.01.2018 / 14:49
2
answers

Modules in Rust

The structure of my project looks like this: src/main.rs --- game.rs --- game_state.rs Within game.rs has: mod game_state; And within game_state.rs has mod game; But this gives me an error: file not found for module...
asked by 20.01.2018 / 22:35