Giter VIP home page Giter VIP logo

explaine.rs's Issues

Tapping doesn't work

Tapping on text doesn't seem to work.

I'm on Chrome for Android.
Chrome v80.0.3987.162
Android 9

"may not" is misleading

?Sized Trait Bound

A bound that expresses that the Sized trait may not be implemented for a given type parameter.

is what the website says. I think it should say "may or may not" instead, like in the Rust book.

missing hint: type annotation

What I expected

Brief explanation of type annotations (and possibly link to book).

Source code

 0 | fn main() {
 1 |   let mut rdr: Box<io::Read> = match input {
   |              ↑-------------↑
 2 |     "-" => Box::new(io::stdin()),
 3 |     _   => Box::new(fs::File::open(input).unwrap()),
 4 |   };
 5 | }

Location: line 1, column 13

Missing Hint for things within "Function Type"

Source code


 1 | fn lol(a: Box<for<'a> fn(x:&'a u32)->()>) {
   |                ↑
 2 | }

Location: line 1, column 15

What I got

"Function Type. The type of a free standing function." spanning the whole generic argument of the Box.

What I expected

"The type of a free standing function" can contain many tricky things inside it. I expect some individual tokens within that type to be selectable.

Missing Hint for Lifetime annotations

What I expected

It would be super awesome to have a hint for ' lifetime annotations, since they're non-trivial to google for when you don't know what they're called.

Source code

I hope I'm getting the terminology right here. For the example code, I used an example from https://doc.rust-lang.org/1.9.0/book/lifetimes.html

0 | struct Foo<'a> {
  |         /* ↑ lifetime annotation */
1 |   x: &'a i32,
  |    /* ↑ lifetime annotation */
2 | }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.