MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / ins

Function ins

atomic-core/src/change/format_v3/graph_fields/wire.rs:12–14  ·  view source on GitHub ↗

Insertion roles 0..8, twelve slots each; edge roles 0..14 start at 96.

(role: usize, field: usize)

Source from the content-addressed store, hash-verified

10pub(super) const ATTR: usize = 270;
11// Insertion roles 0..8, twelve slots each; edge roles 0..14 start at 96.
12pub(super) fn ins(role: usize, field: usize) -> usize {
13 role * 12 + field
14}
15pub(super) fn edge(role: usize, field: usize) -> usize {
16 96 + role * 12 + field
17}

Callers 2

insertionMethod · 0.85
insertionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected