pub struct DaBlockHeight(pub u64);
Tuple Fields§
§0: u64
Implementations§
Trait Implementations§
Source§impl Add<u64> for DaBlockHeight
impl Add<u64> for DaBlockHeight
Source§impl Add for DaBlockHeight
impl Add for DaBlockHeight
Source§type Output = DaBlockHeight
type Output = DaBlockHeight
The resulting type after applying the
+
operator.Source§fn add(self, rhs: DaBlockHeight) -> DaBlockHeight
fn add(self, rhs: DaBlockHeight) -> DaBlockHeight
Performs the
+
operation. Read moreSource§impl Clone for DaBlockHeight
impl Clone for DaBlockHeight
Source§fn clone(&self) -> DaBlockHeight
fn clone(&self) -> DaBlockHeight
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 DaBlockHeight
impl Debug for DaBlockHeight
Source§impl Default for DaBlockHeight
impl Default for DaBlockHeight
Source§fn default() -> DaBlockHeight
fn default() -> DaBlockHeight
Returns the “default value” for a type. Read more
Source§impl Deref for DaBlockHeight
impl Deref for DaBlockHeight
Source§impl Display for DaBlockHeight
impl Display for DaBlockHeight
Source§impl From<DaBlockHeight> for Vec<u8>
impl From<DaBlockHeight> for Vec<u8>
Source§fn from(height: DaBlockHeight) -> Self
fn from(height: DaBlockHeight) -> Self
Converts to this type from the input type.
Source§impl From<DaBlockHeight> for u64
impl From<DaBlockHeight> for u64
Source§fn from(original: DaBlockHeight) -> Self
fn from(original: DaBlockHeight) -> Self
Converts to this type from the input type.
Source§impl From<u64> for DaBlockHeight
impl From<u64> for DaBlockHeight
Source§fn from(original: u64) -> DaBlockHeight
fn from(original: u64) -> DaBlockHeight
Converts to this type from the input type.
Source§impl From<usize> for DaBlockHeight
impl From<usize> for DaBlockHeight
Source§impl Hash for DaBlockHeight
impl Hash for DaBlockHeight
Source§impl Ord for DaBlockHeight
impl Ord for DaBlockHeight
Source§fn cmp(&self, other: &DaBlockHeight) -> Ordering
fn cmp(&self, other: &DaBlockHeight) -> 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 DaBlockHeight
impl PartialEq for DaBlockHeight
Source§impl PartialOrd for DaBlockHeight
impl PartialOrd for DaBlockHeight
Source§impl Rem for DaBlockHeight
impl Rem for DaBlockHeight
Source§type Output = DaBlockHeight
type Output = DaBlockHeight
The resulting type after applying the
%
operator.Source§fn rem(self, rhs: DaBlockHeight) -> DaBlockHeight
fn rem(self, rhs: DaBlockHeight) -> DaBlockHeight
Performs the
%
operation. Read moreSource§impl Sub for DaBlockHeight
impl Sub for DaBlockHeight
Source§type Output = DaBlockHeight
type Output = DaBlockHeight
The resulting type after applying the
-
operator.Source§fn sub(self, rhs: DaBlockHeight) -> DaBlockHeight
fn sub(self, rhs: DaBlockHeight) -> DaBlockHeight
Performs the
-
operation. Read moreimpl Copy for DaBlockHeight
impl Eq for DaBlockHeight
impl StructuralPartialEq for DaBlockHeight
Auto Trait Implementations§
impl Freeze for DaBlockHeight
impl RefUnwindSafe for DaBlockHeight
impl Send for DaBlockHeight
impl Sync for DaBlockHeight
impl Unpin for DaBlockHeight
impl UnwindSafe for DaBlockHeight
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