[−][src]Struct tendermint::block::Height
Block height for a particular chain (i.e. number of blocks created since the chain began)
Methods
impl Height
[src]
impl Height
pub fn parse(n: i64) -> Result<Self, Error>
[src]
pub fn parse(n: i64) -> Result<Self, Error>
Parse height from the integer type used in Amino messages
pub fn value(self) -> u64
[src]
pub fn value(self) -> u64
Get inner integer value. Alternative to .0
or .into()
pub fn increment(self) -> Self
[src]
pub fn increment(self) -> Self
Increment the block height by 1
Trait Implementations
impl Clone for Height
[src]
impl Clone for Height
fn clone(&self) -> Height
[src]
fn clone(&self) -> Height
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for Height
[src]
impl Copy for Height
impl From<i64> for Height
[src]
impl From<i64> for Height
impl From<u64> for Height
[src]
impl From<u64> for Height
impl From<Height> for u64
[src]
impl From<Height> for u64
impl From<Height> for i64
[src]
impl From<Height> for i64
impl Eq for Height
[src]
impl Eq for Height
impl PartialOrd<Height> for Height
[src]
impl PartialOrd<Height> for Height
fn partial_cmp(&self, other: &Height) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Height) -> Option<Ordering>
fn lt(&self, other: &Height) -> bool
[src]
fn lt(&self, other: &Height) -> bool
fn le(&self, other: &Height) -> bool
[src]
fn le(&self, other: &Height) -> bool
fn gt(&self, other: &Height) -> bool
[src]
fn gt(&self, other: &Height) -> bool
fn ge(&self, other: &Height) -> bool
[src]
fn ge(&self, other: &Height) -> bool
impl Default for Height
[src]
impl Default for Height
impl PartialEq<Height> for Height
[src]
impl PartialEq<Height> for Height
impl Ord for Height
[src]
impl Ord for Height
fn cmp(&self, other: &Height) -> Ordering
[src]
fn cmp(&self, other: &Height) -> Ordering
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
1.21.0
[src]Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0
[src]Compares and returns the minimum of two values. Read more
impl Debug for Height
[src]
impl Debug for Height
impl Display for Height
[src]
impl Display for Height
impl Hash for Height
[src]
impl Hash for Height
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl Serialize for Height
[src]
impl Serialize for Height
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
impl<'de> Deserialize<'de> for Height
[src]
impl<'de> Deserialize<'de> for Height
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
impl<T> ToString for T where
T: Display + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
impl<T> Same for T
impl<T> Same for T
type Output = T
Should always be Self
impl<T> Clear for T where
T: InitializableFromZeroed + ?Sized,
impl<T> Clear for T where
T: InitializableFromZeroed + ?Sized,
fn clear(&mut self)
fn clear(&mut self)
impl<T> InitializableFromZeroed for T where
T: Default,
impl<T> InitializableFromZeroed for T where
T: Default,
unsafe fn initialize(place: *mut T)
unsafe fn initialize(place: *mut T)