[Rust] Type as namespace
See original GitHub issueHi! I’ll open one ticket per issue to keep the discussions targeted 😃 Hope you don’t mind.
In the previous ticket, I didn’t pay attention to one thing I’ve noticed this morning while testing the new version:
WebEvent
is properly coloured as a type on its declaration, but not when using the variants in the match
statement.
Same thing here:
HexView
is a struct
(a type) and is coloured as a namespace.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Namespaces - The Rust Reference
A namespace is a logical grouping of declared names. Names are segregated into separate namespaces based on the kind of entity the name...
Read more >Rust's Universes - Aloso's Blog
Identifiers. To understand namespaces, we first need to talk about names. Namespaces contain all the names (called identifiers) in Rust code.
Read more >In rust; what types are included in a type's Namespace?
I'm studying the source to the petgraph library, and I cannot find out where the type Graph::NodeId comes from.
Read more >Namespacing With Modules · A Guide to Porting C ... - locka99
The equivalent to a namespace in Rust is a module and serves a similar purpose. Unlike C++ though you get namespacing automatically from...
Read more >html5ever::Namespace - Rust - Docs.rs
API documentation for the Rust `Namespace` type in crate `html5ever`.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Meanwhile, I think, I’ll refactor
namespace
toscope
. Maybe it will help to avoid some misunderstandings in future.scope
is more general and can be applied to namespace, module, package, outer class, etc.I believe several days with such highlighting and everyone will love it, maybe most people won’t even notice ))). Thank you very much again. @Geobert , you should be a hero for Rust developers. If they will adopt this extension of course ))).