3 ms·
Sounds like you would find the Trait system in Rust very interesting. https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=f0392c8bacf1b8919
by dralley 8y ago
Sounds like you would find the Trait system in Rust very interesting.
https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=f0392c8bacf1b8919d70daddb6f6557e https://play.rust-lang.org/?version=stable&mode=debug&editio...
- skybrian 8y agoTraits are okay in principle but, as a Rust beginner, the huge number of trait implementations make browsing the api docs overwhelming. For example, the list of implementations for String don't even fit on the screen at once. [1] It seems very repetitive and I wish there were an easier way to get an overview of what functionality is available and find the right method to call. [1] https://doc.rust-lang.org/std/string/struct.String.html https://doc.rust-lang.org/std/string/struct.String.html
- Inityx 8y agoIt's not a great solution, but I've found it beneficial to lean heavily on the Rust docs search bar when looking for specific behavior. It's very fast, and fuzzy enough that it finds what I'm looking for most of the time.