pub struct BlockHeight(/* private fields */);
Implementations§
Trait Implementations§
Source§impl Add for BlockHeight
impl Add for BlockHeight
Source§type Output = BlockHeight
type Output = BlockHeight
The resulting type after applying the
+
operator.Source§fn add(self, rhs: BlockHeight) -> BlockHeight
fn add(self, rhs: BlockHeight) -> BlockHeight
Performs the
+
operation. Read moreSource§impl Clone for BlockHeight
impl Clone for BlockHeight
Source§fn clone(&self) -> BlockHeight
fn clone(&self) -> BlockHeight
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BlockHeight
impl Debug for BlockHeight
Source§impl Default for BlockHeight
impl Default for BlockHeight
Source§fn default() -> BlockHeight
fn default() -> BlockHeight
Returns the “default value” for a type. Read more
Source§impl Deref for BlockHeight
impl Deref for BlockHeight
Source§impl Display for BlockHeight
impl Display for BlockHeight
Source§impl From<BlockHeight> for Vec<u8>
impl From<BlockHeight> for Vec<u8>
Source§fn from(height: BlockHeight) -> Self
fn from(height: BlockHeight) -> Self
Converts to this type from the input type.
Source§impl From<BlockHeight> for u32
impl From<BlockHeight> for u32
Source§fn from(original: BlockHeight) -> Self
fn from(original: BlockHeight) -> Self
Converts to this type from the input type.
Source§impl From<BlockHeight> for u64
impl From<BlockHeight> for u64
Source§fn from(b: BlockHeight) -> Self
fn from(b: BlockHeight) -> Self
Converts to this type from the input type.
Source§impl From<u32> for BlockHeight
impl From<u32> for BlockHeight
Source§fn from(original: u32) -> BlockHeight
fn from(original: u32) -> BlockHeight
Converts to this type from the input type.
Source§impl From<u64> for BlockHeight
impl From<u64> for BlockHeight
Source§impl From<usize> for BlockHeight
impl From<usize> 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 · 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§impl PartialOrd for BlockHeight
impl PartialOrd for BlockHeight
Source§impl Sub for BlockHeight
impl Sub for BlockHeight
Source§type Output = BlockHeight
type Output = BlockHeight
The resulting type after applying the
-
operator.Source§fn sub(self, rhs: BlockHeight) -> BlockHeight
fn sub(self, rhs: BlockHeight) -> BlockHeight
Performs the
-
operation. Read moreimpl Copy for BlockHeight
impl Eq 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 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
Source§impl<T> CallHasher for T
impl<T> CallHasher for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more