MCPcopy Create free account
hub / github.com/aleph-zero-foundation/AlephBFT / NodeMap

Class NodeMap

crypto/src/node.rs:94–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92/// A container keeping items indexed by NodeIndex.
93#[derive(Clone, Eq, PartialEq, Hash, Debug, Default, Decode, Encode, From)]
94pub struct NodeMap<T>(Vec<Option<T>>);
95
96impl<T> NodeMap<T> {
97 /// Constructs a new node map with a given length.

Callers 2

with_sizeMethod · 0.85
from_hashmapMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected