explain-rs
explain-rs copied to clipboard
A library which finds language features in rust code and provides resources on them.
Loading source from github into the editor should be possible and convenient. When possible, we should provide simple pagination in form of breadcrumbs or something similar to navigate between modules.
React?
The planned features would probably be easier to work on with clear and modularized components. But might be overkill for a simple app. Not _everything_ needs to be a react...
We currently use an textarea with some rather hacky javascript. Providing an editor with proper source highlighting would be an upgrade.
Normally your generics are form: ````rust fn do_it() where T: Add {} ```` but you can also have generics of form: ````rust fn do_it() where usize: Add ```` These bounds...
If your struct doesn't have any contents, rust allows you to create it without parenthesis. Using this can make for clean API, but it can be confusing if you don't...
This allows getting mutable reference into the destructured object. Here is an use case for it that I think is especially confusing if you don't know what it's about: https://github.com/VoxWave/Mato/blob/6fa4a1a7f5bcad442612032b297272be7d3b6f32/src/main.rs#L64
Remove unwraps and unimplemented! calls and propagate them properly. This [type ](https://github.com/MSleepyPanda/explain-rs/blob/dc15605bd6f481e66806af61b5fdfe054fd0fd23/src/explain.rs#L12-L15)is a stub in prep for this. Though unimplemented is the logically correct choice, we can still produce intermediate...
I once wrote a small example, in which i made the caller choose the type of a Collection with type inference of the return type, all with generics and without...