MCPcopy Create free account
hub / github.com/astral-sh/ruff / NodeKey

Class NodeKey

crates/ty_python_core/src/node_key.rs:7–7  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5/// Compact key for a node for use in a hash map.
6#[derive(Copy, Clone, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, get_size2::GetSize)]
7pub struct NodeKey(NodeIndex);
8
9impl NodeKey {
10 /// Returns the index of the AST node.

Callers 2

from_nodeMethod · 0.85
from_node_refMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected