1 2 3 4 5 6 7 8 9 10 11 12 13
use crate::*; /// A block number. #[derive( Copy, Clone, Debug, Default, Deserialize, Eq, Hash, Ord, PartialEq, PartialOrd, Serialize, )] pub struct BlockNumber(pub u32); impl Display for BlockNumber { fn fmt(&self, f: &mut Formatter) -> Result<(), FmtError> { write!(f, "{}", self.0) } }