#rustlangtips search results
Can Rust make swapping characters in a string as simple as swapping clothes in a dressing room? Source: devhubby.com/thread/how-to-… #rustlangtips #codingtutorial #rustlang #softwaredevelopment #char #rust
What's the best way to procrastinate on implementing an iterator trait over a wrapped vector in Rust? Asking for a friend. Source: devhubby.com/thread/how-to-… #rustlangtips #programming #learningrust #rustcommunity #wrapped #wrap
Rust Attributes - most of the projects in Rust uses this language feature heavily. Surprisingly the language documentation or tutorials are not giving priority to explain it. doc.rust-lang.org/reference/attr… Quiz: difference of #[attr] and !#[attr] ? #Rustlangtips #rust
If someone wrote () as type in Rust, it is like "void" in other languages #rustlangtips
It is amazing that how nicely "Rust" features are used in rocket.rs . Request guards and Optional Parameters are best use case that i have seen for Rust .rocket.rs/v0.4/guide/req… #rustlang #Rustlangtips
Struct std::ops::Range is cool struct to generate range of numbers.. The range start..end means it contains all values 'start'>=x<'end' Note: if you want to include 'end' start ..= end #rustlang #rustlangtips
It become tricky in Rust if you want multiple owners for a value and at the same time you want to mutate the value. Clue: The Rust Programming language book page # 330 #rustlangtips #rustlang
Top 10 Iterator methods that should know in Rust programming? collect - (iterator to relevant collection.) enumerate - (iteration count + next value). filter map nth take chain zip for_each find #Rustlang #Rustlangtips
Custom drop function - If you pass the value to a function which does not do anything will be acting the "drop" functionality in Rust. #rustlangtips
if we build an API, we don't want to expose some passing variables changes to the outside world(otherwise it may cause vulnerabilities). Yea..Immutable to outside and mutable inside. But normal Rust rule won't support that. RefCell and Cell types helps here . #rustlangtips
I looks for "gdb" for as a debugging option, so did the same for Rust.I found interesting gdb tool called "rust-gdb" and a crate "cargo-with" to inspec Rust pgms runtime state. michaelwoerister.github.io/2015/03/27/rus… bitshifter.github.io/rr+rust/index.… github.com/cbourjau/cargo… #rustlang #Rustlangtips
If you think that your module in Rust is going to have submodules, create a folder with module name(inside src) and keep the declarations as a file called mod.rs . Rule apply recursively... Reference: The Book page:117 #rustlang #rustlangtips
What's the best way to procrastinate on implementing an iterator trait over a wrapped vector in Rust? Asking for a friend. Source: devhubby.com/thread/how-to-… #rustlangtips #programming #learningrust #rustcommunity #wrapped #wrap
Can Rust make swapping characters in a string as simple as swapping clothes in a dressing room? Source: devhubby.com/thread/how-to-… #rustlangtips #codingtutorial #rustlang #softwaredevelopment #char #rust
I looks for "gdb" for as a debugging option, so did the same for Rust.I found interesting gdb tool called "rust-gdb" and a crate "cargo-with" to inspec Rust pgms runtime state. michaelwoerister.github.io/2015/03/27/rus… bitshifter.github.io/rr+rust/index.… github.com/cbourjau/cargo… #rustlang #Rustlangtips
Rust Attributes - most of the projects in Rust uses this language feature heavily. Surprisingly the language documentation or tutorials are not giving priority to explain it. doc.rust-lang.org/reference/attr… Quiz: difference of #[attr] and !#[attr] ? #Rustlangtips #rust
It is amazing that how nicely "Rust" features are used in rocket.rs . Request guards and Optional Parameters are best use case that i have seen for Rust .rocket.rs/v0.4/guide/req… #rustlang #Rustlangtips
Top 10 Iterator methods that should know in Rust programming? collect - (iterator to relevant collection.) enumerate - (iteration count + next value). filter map nth take chain zip for_each find #Rustlang #Rustlangtips
Struct std::ops::Range is cool struct to generate range of numbers.. The range start..end means it contains all values 'start'>=x<'end' Note: if you want to include 'end' start ..= end #rustlang #rustlangtips
If you think that your module in Rust is going to have submodules, create a folder with module name(inside src) and keep the declarations as a file called mod.rs . Rule apply recursively... Reference: The Book page:117 #rustlang #rustlangtips
It become tricky in Rust if you want multiple owners for a value and at the same time you want to mutate the value. Clue: The Rust Programming language book page # 330 #rustlangtips #rustlang
if we build an API, we don't want to expose some passing variables changes to the outside world(otherwise it may cause vulnerabilities). Yea..Immutable to outside and mutable inside. But normal Rust rule won't support that. RefCell and Cell types helps here . #rustlangtips
Custom drop function - If you pass the value to a function which does not do anything will be acting the "drop" functionality in Rust. #rustlangtips
If someone wrote () as type in Rust, it is like "void" in other languages #rustlangtips
Something went wrong.
Something went wrong.
United States Trends
- 1. Iowa 23.9K posts
- 2. Penn State 24.8K posts
- 3. Indiana 40.9K posts
- 4. Mendoza 22K posts
- 5. Gus Johnson 7,488 posts
- 6. Heisman 10.1K posts
- 7. #UFCVegas111 7,062 posts
- 8. Sayin 71.1K posts
- 9. Mizzou 4,573 posts
- 10. Cam Coleman N/A
- 11. #iufb 4,567 posts
- 12. Sounders N/A
- 13. Dante Moore 1,531 posts
- 14. Fran Brown N/A
- 15. Preston Howard N/A
- 16. Pringle 1,090 posts
- 17. Barcelos 1,048 posts
- 18. Stein 3,439 posts
- 19. OMAR COOPER 10.3K posts
- 20. Beck 7,920 posts