Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in rust

How can I randomly select one element from a vector or array?

rust

Does Rust have an equivalent to Python's list comprehension syntax?

Efficiently insert or replace multiple elements in the middle or at the beginning of a Vec?

rust

How to check if a string contains whitespace?

string rust

Why does Rust not have a return value in the main function, and how to return a value anyway?

return main rust

How can I generate a random number within a range in Rust?

random rust rust-obsolete

How to clone a struct storing a boxed trait object?

Check if a string is empty or blank

rust

Does Rust support Ruby-like string interpolation?

rust string-interpolation

How to execute cargo test using the nightly channel?

rust rust-cargo

Why do Rust programs use so much more memory than the C, Haskell and OCaml versions?

rust

Why would I implement methods on a trait instead of as part of the trait?

rust traits

What is the idiomatic way to return an error from a function with no result if successful?

Using generic trait methods like .into() when type inference is impossible

rust type-conversion

How to cleanly end the program with an exit code?

rust

Is it considered a bad practice to implement Deref for newtypes?

rust dereference

When would you use a Mutex without an Arc?

rust

Is it possible to unpack a tuple into function arguments?

rust tuples

Converting a hexadecimal string to a decimal integer

parsing hex rust

How can I get cargo to recompile changed files automatically?

rust rust-cargo