MCPcopy Create free account
hub / github.com/Rust-GPU/rust-cuda / is_valid_node

Method is_valid_node

crates/cust/src/graph.rs:285–288  ·  view source on GitHub ↗

Check if a node is valid in this graph.

(&mut self, node: GraphNode)

Source from the content-addressed store, hash-verified

283
284 /// Check if a node is valid in this graph.
285 pub fn is_valid_node(&mut self, node: GraphNode) -> CudaResult<bool> {
286 let nodes = self.nodes()?;
287 Ok(nodes.contains(&node))
288 }
289
290 /// Get the number of nodes in this graph.
291 pub fn num_nodes(&mut self) -> CudaResult<usize> {

Callers

nothing calls this directly

Calls 2

nodesMethod · 0.80
containsMethod · 0.45

Tested by

no test coverage detected