MCPcopy Create free account
hub / github.com/BillyDM/Firewheel / contains_node

Method contains_node

crates/firewheel-graph/src/graph.rs:309–311  ·  view source on GitHub ↗

Returns `true` if the node exists in the graph.

(&self, id: NodeID)

Source from the content-addressed store, hash-verified

307
308 /// Returns `true` if the node exists in the graph.
309 pub fn contains_node(&self, id: NodeID) -> bool {
310 self.nodes.contains(id.0)
311 }
312
313 /// Get an immutable reference to the custom state of a node.
314 pub fn node_state<T: 'static>(&self, id: NodeID) -> Option<&T> {

Callers

nothing calls this directly

Calls 1

containsMethod · 0.80

Tested by

no test coverage detected