pub trait ChainItem: Clone + PartialEq<Self> + Eq + Debug + Send + Sync {
type Hash: Into<HoloHash<Action>> + Clone + PartialEq<Self::Hash> + Eq + Ord + Hash + Debug + Send + Sync;
// Required methods
fn seq(&self) -> u32;
fn get_hash(&self) -> &Self::Hash;
fn prev_hash(&self) -> Option<&Self::Hash>;
}
Expand description
Abstraction over an item in a chain.