MCPcopy Create free account
hub / github.com/chc4/lineiform / new

Method new

tangle/src/node.rs:20–22  ·  view source on GitHub ↗
(x: usize)

Source from the content-addressed store, hash-verified

18unsafe impl petgraph::matrix_graph::IndexType for NodeIdxToken {
19 #[inline(always)]
20 fn new(x: usize) -> Self {
21 NodeIdxToken(x as u32)
22 }
23 #[inline(always)]
24 fn index(&self) -> usize {
25 self.0 as usize

Callers

nothing calls this directly

Calls 3

NodeIdxTokenClass · 0.85
new_regionMethod · 0.80
incrementMethod · 0.80

Tested by

no test coverage detected