MCPcopy Create free account
hub / github.com/csskit/csskit / node_id

Method node_id

crates/csskit_ast/src/selector/query.rs:366–369  ·  view source on GitHub ↗
(&self, _source: &str)

Source from the content-addressed store, hash-verified

364
365impl QueryType {
366 pub fn node_id(&self, _source: &str) -> Option<NodeId> {
367 let c: Cursor = self.0.into();
368 CsskitAtomSet::from_bits(c.atom_bits()).to_node_id()
369 }
370}
371
372impl NodeWithMetadata<QuerySelectorMetadata> for QueryType {

Callers 2

from_segmentMethod · 0.80
matchesMethod · 0.80

Calls 1

atom_bitsMethod · 0.45

Tested by

no test coverage detected