Skip to content
#

rustlang

rust logo

Rust is a systems programming language created by Mozilla. It is similar to C++, but is designed for improved memory safety without sacrificing performance.

Here are 292 public repositories matching this topic...

flavius
flavius commented Apr 14, 2019

I just skimmed through the docs, so bear with me:

I have two functions, one is cached, and another one might invalidate the cache or some key in it. There's no example of how to get ahold of the cache in the second function, in order to be able to call methods like cache_remove or cache_clear.

The second function is not cached, it just invalidates the cache, and there can be an infinite

ssokolow
ssokolow commented Oct 18, 2019

It's bad UI design to have required option flags on a command-line tool. In fact, the documentation for Python's in-stdlib argument parsing library explicitly teaches people to avoid it.

This...

rustig [FLAGS] [OPTIONS] --binary <FILE>

...should be this...

rustig [FLAGS] [OPTIONS] <FILE>

Requiring --binary or -b before what could be a positional argument just makes the c

dvigneshwer
dvigneshwer commented Nov 8, 2017

Following points need to be covered:

  • Options and Results
  • ? operator
  • Error handling
  • File handling
  • Path and PathBuf types
  • Parsing String and &str
  • Bit manipulation and 16-bit RGB565 representation
  • vec vs arrays, and the clone trait. Objects allocated on the heap vs stack.

Please feel free to add your answers below, I will start to curate them sometime next week and will

Created by Graydon Hoare

Released 2010

Organization
rust-lang
Website
www.rust-lang.org
Wikipedia
Wikipedia

Related Topics

c-plus-plus language
You can’t perform that action at this time.