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

Function edge

atomic-core/src/change/format_v3/graph_fields/wire.rs:15–17  ·  view source on GitHub ↗
(role: usize, field: usize)

Source from the content-addressed store, hash-verified

13 role * 12 + field
14}
15pub(super) fn edge(role: usize, field: usize) -> usize {
16 96 + role * 12 + field
17}
18pub(super) fn invalid(message: &str) -> FormatError {
19 FormatError::InvalidChangeMetadata {
20 reason: format!("graph fields: {message}"),

Callers 2

edgesMethod · 0.70
edgesMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected