MCPcopy Index your code
hub / github.com/ciphermodelabs/ciphercore / is_network_node

Function is_network_node

ciphercore-base/src/bin/ciphercore_inspect.rs:25–34  ·  view source on GitHub ↗
(node: Node)

Source from the content-addressed store, hash-verified

23 type_string: String,
24}
25fn is_network_node(node: Node) -> Result<bool> {
26 if let Operation::NOP = node.get_operation() {
27 for annotation in node.get_annotations()? {
28 if let NodeAnnotation::Send(_, _) = annotation {
29 return Ok(true);
30 }
31 }
32 }
33 Ok(false)
34}
35
36fn get_buffer_length_in_items(t: Type) -> u64 {
37 if t.is_array() {

Callers 2

calculate_network_roundsFunction · 0.85
print_statsFunction · 0.85

Calls 2

get_annotationsMethod · 0.80
get_operationMethod · 0.45

Tested by

no test coverage detected