#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
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
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
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 someone wrote () as type in Rust, it is like "void" in other languages #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
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
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. #SmackDown 17.4K posts
- 2. Caleb Wilson 1,874 posts
- 3. Darryn Peterson 1,632 posts
- 4. Kansas 22.9K posts
- 5. Georgetown 2,978 posts
- 6. Reed Sheppard N/A
- 7. Vesia 5,848 posts
- 8. Tiller 4,067 posts
- 9. Dizzy 12.3K posts
- 10. End of 1st 1,841 posts
- 11. #GCWUnderstand N/A
- 12. #kubball N/A
- 13. UMass Lowell N/A
- 14. Oakland 3,310 posts
- 15. End 1Q N/A
- 16. End of the 1st 1,193 posts
- 17. Bruce Thornton N/A
- 18. Grammy 489K posts
- 19. Zelina 1,159 posts
- 20. Sam Merrill N/A