Trait holochain_types::chain::ChainItem
source · pub trait ChainItem: Clone + PartialEq + Eq + Debug + Send + Sync {
type Hash: Into<ActionHash> + Clone + PartialEq + 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>;
fn to_display(&self) -> String;
}
Expand description
Abstraction over an item in a chain.
Required Associated Types§
Required Methods§
sourcefn to_display(&self) -> String
fn to_display(&self) -> String
A display representation of the item
Object Safety§
This trait is not object safe.