pub struct BlockHeight(pub u64);Expand description
The height of a block in the Tenzro Network blockchain
Block height starts at 0 for the genesis block and increments by 1 for each block.
Tuple Fields§
§0: u64Implementations§
Source§impl BlockHeight
impl BlockHeight
Trait Implementations§
Source§impl Add<u64> for BlockHeight
impl Add<u64> for BlockHeight
Source§impl Clone for BlockHeight
impl Clone for BlockHeight
Source§fn clone(&self) -> BlockHeight
fn clone(&self) -> BlockHeight
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BlockHeight
Source§impl Debug for BlockHeight
impl Debug for BlockHeight
Source§impl Default for BlockHeight
impl Default for BlockHeight
Source§impl<'de> Deserialize<'de> for BlockHeight
impl<'de> Deserialize<'de> for BlockHeight
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for BlockHeight
impl Display for BlockHeight
impl Eq for BlockHeight
Source§impl From<u64> for BlockHeight
impl From<u64> for BlockHeight
Source§impl Hash for BlockHeight
impl Hash for BlockHeight
Source§impl Ord for BlockHeight
impl Ord for BlockHeight
Source§fn cmp(&self, other: &BlockHeight) -> Ordering
fn cmp(&self, other: &BlockHeight) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for BlockHeight
impl PartialEq for BlockHeight
Source§fn eq(&self, other: &BlockHeight) -> bool
fn eq(&self, other: &BlockHeight) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for BlockHeight
impl PartialOrd for BlockHeight
Source§impl Serialize for BlockHeight
impl Serialize for BlockHeight
impl StructuralPartialEq for BlockHeight
Auto Trait Implementations§
impl Freeze for BlockHeight
impl RefUnwindSafe for BlockHeight
impl Send for BlockHeight
impl Sync for BlockHeight
impl Unpin for BlockHeight
impl UnsafeUnpin for BlockHeight
impl UnwindSafe for BlockHeight
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more