Trait parity_machine::ScoredHeader [−][src]
pub trait ScoredHeader: Header { type Value; fn score(&self) -> &Self::Value; fn set_score(&mut self, score: Self::Value); }
A header with an associated score (difficulty in PoW terms)
Associated Types
type Value
Required Methods
fn score(&self) -> &Self::Value
Get the score of this header.
fn set_score(&mut self, score: Self::Value)
Set the score of this header.