question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Rust] Type as namespace

See original GitHub issue

Hi! 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: image

WebEvent is properly coloured as a type on its declaration, but not when using the variants in the match statement.

Same thing here: image

HexView is a struct (a type) and is coloured as a namespace.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
EvgeniyPeshkovcommented, May 28, 2019

Meanwhile, I think, I’ll refactor namespace to scope. 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.

0reactions
EvgeniyPeshkovcommented, May 28, 2019

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 ))).

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found