Struct themelio_structs::BlockHeight
source · [−]pub struct BlockHeight(pub u64);Expand description
Newtype representing a block height.
Tuple Fields
0: u64Implementations
sourceimpl BlockHeight
impl BlockHeight
Trait Implementations
sourceimpl Add<BlockHeight> for BlockHeight
impl Add<BlockHeight> for BlockHeight
type Output = BlockHeight
type Output = BlockHeight
The resulting type after applying the + operator.
sourcefn add(self, rhs: BlockHeight) -> BlockHeight
fn add(self, rhs: BlockHeight) -> BlockHeight
Performs the + operation. Read more
sourceimpl AddAssign<BlockHeight> for BlockHeight
impl AddAssign<BlockHeight> for BlockHeight
sourcefn add_assign(&mut self, rhs: BlockHeight)
fn add_assign(&mut self, rhs: BlockHeight)
Performs the += operation. Read more
sourceimpl<'arbitrary> Arbitrary<'arbitrary> for BlockHeight
impl<'arbitrary> Arbitrary<'arbitrary> for BlockHeight
sourcefn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of Self from the given unstructured data. Read more
sourcefn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of Self from the entirety of the given unstructured data. Read more
sourceimpl Clone for BlockHeight
impl Clone for BlockHeight
sourcefn clone(&self) -> BlockHeight
fn clone(&self) -> BlockHeight
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for BlockHeight
impl Debug for BlockHeight
sourceimpl Default for BlockHeight
impl Default for BlockHeight
sourcefn default() -> BlockHeight
fn default() -> BlockHeight
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for BlockHeight
impl<'de> Deserialize<'de> for BlockHeight
sourcefn 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
sourceimpl Display for BlockHeight
impl Display for BlockHeight
sourceimpl<__RhsT> Div<__RhsT> for BlockHeight where
u64: Div<__RhsT, Output = u64>,
impl<__RhsT> Div<__RhsT> for BlockHeight where
u64: Div<__RhsT, Output = u64>,
type Output = BlockHeight
type Output = BlockHeight
The resulting type after applying the / operator.
sourcefn div(self, rhs: __RhsT) -> BlockHeight
fn div(self, rhs: __RhsT) -> BlockHeight
Performs the / operation. Read more
sourceimpl<__RhsT> DivAssign<__RhsT> for BlockHeight where
u64: DivAssign<__RhsT>,
impl<__RhsT> DivAssign<__RhsT> for BlockHeight where
u64: DivAssign<__RhsT>,
sourcefn div_assign(&mut self, rhs: __RhsT)
fn div_assign(&mut self, rhs: __RhsT)
Performs the /= operation. Read more
sourceimpl From<BlockHeight> for u64
impl From<BlockHeight> for u64
sourcefn from(original: BlockHeight) -> Self
fn from(original: BlockHeight) -> Self
Converts to this type from the input type.
sourceimpl From<u64> for BlockHeight
impl From<u64> for BlockHeight
sourcefn from(original: u64) -> BlockHeight
fn from(original: u64) -> BlockHeight
Converts to this type from the input type.
sourceimpl FromStr for BlockHeight
impl FromStr for BlockHeight
sourceimpl Hash for BlockHeight
impl Hash for BlockHeight
sourceimpl<__RhsT> Mul<__RhsT> for BlockHeight where
u64: Mul<__RhsT, Output = u64>,
impl<__RhsT> Mul<__RhsT> for BlockHeight where
u64: Mul<__RhsT, Output = u64>,
type Output = BlockHeight
type Output = BlockHeight
The resulting type after applying the * operator.
sourcefn mul(self, rhs: __RhsT) -> BlockHeight
fn mul(self, rhs: __RhsT) -> BlockHeight
Performs the * operation. Read more
sourceimpl<__RhsT> MulAssign<__RhsT> for BlockHeight where
u64: MulAssign<__RhsT>,
impl<__RhsT> MulAssign<__RhsT> for BlockHeight where
u64: MulAssign<__RhsT>,
sourcefn mul_assign(&mut self, rhs: __RhsT)
fn mul_assign(&mut self, rhs: __RhsT)
Performs the *= operation. Read more
sourceimpl Ord for BlockHeight
impl Ord for BlockHeight
sourceimpl PartialEq<BlockHeight> for BlockHeight
impl PartialEq<BlockHeight> for BlockHeight
sourcefn eq(&self, other: &BlockHeight) -> bool
fn eq(&self, other: &BlockHeight) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &BlockHeight) -> bool
fn ne(&self, other: &BlockHeight) -> bool
This method tests for !=.
sourceimpl PartialOrd<BlockHeight> for BlockHeight
impl PartialOrd<BlockHeight> for BlockHeight
sourcefn partial_cmp(&self, other: &BlockHeight) -> Option<Ordering>
fn partial_cmp(&self, other: &BlockHeight) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
sourceimpl Serialize for BlockHeight
impl Serialize for BlockHeight
sourceimpl Sub<BlockHeight> for BlockHeight
impl Sub<BlockHeight> for BlockHeight
type Output = BlockHeight
type Output = BlockHeight
The resulting type after applying the - operator.
sourcefn sub(self, rhs: BlockHeight) -> BlockHeight
fn sub(self, rhs: BlockHeight) -> BlockHeight
Performs the - operation. Read more
sourceimpl SubAssign<BlockHeight> for BlockHeight
impl SubAssign<BlockHeight> for BlockHeight
sourcefn sub_assign(&mut self, rhs: BlockHeight)
fn sub_assign(&mut self, rhs: BlockHeight)
Performs the -= operation. Read more
impl Copy for BlockHeight
impl Eq for BlockHeight
impl StructuralEq for BlockHeight
impl StructuralPartialEq for BlockHeight
Auto Trait Implementations
impl RefUnwindSafe for BlockHeight
impl Send for BlockHeight
impl Sync for BlockHeight
impl Unpin for BlockHeight
impl UnwindSafe for BlockHeight
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Pipe for T where
T: ?Sized,
impl<T> Pipe for T where
T: ?Sized,
sourcefn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
Pipes by value. This is generally the method you want to use. Read more
sourcefn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R where
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R where
R: 'a,
Borrows self and passes that borrow into the pipe function. Read more
sourcefn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R where
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R where
R: 'a,
Mutably borrows self and passes that borrow into the pipe function. Read more
sourcefn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R where
Self: Borrow<B>,
B: 'a + ?Sized,
R: 'a,
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R where
Self: Borrow<B>,
B: 'a + ?Sized,
R: 'a,
Borrows self, then passes self.borrow() into the pipe function. Read more
sourcefn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R
) -> R where
Self: BorrowMut<B>,
B: 'a + ?Sized,
R: 'a,
fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R
) -> R where
Self: BorrowMut<B>,
B: 'a + ?Sized,
R: 'a,
Mutably borrows self, then passes self.borrow_mut() into the pipe
function. Read more
sourcefn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R where
Self: AsRef<U>,
U: 'a + ?Sized,
R: 'a,
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R where
Self: AsRef<U>,
U: 'a + ?Sized,
R: 'a,
Borrows self, then passes self.as_ref() into the pipe function.
sourcefn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R where
Self: AsMut<U>,
U: 'a + ?Sized,
R: 'a,
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R where
Self: AsMut<U>,
U: 'a + ?Sized,
R: 'a,
Mutably borrows self, then passes self.as_mut() into the pipe
function. Read more
sourceimpl<T> StdcodeSerializeExt for T where
T: Serialize,
impl<T> StdcodeSerializeExt for T where
T: Serialize,
sourceimpl<T> Tap for T
impl<T> Tap for T
sourcefn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self where
Self: Borrow<B>,
B: ?Sized,
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self where
Self: Borrow<B>,
B: ?Sized,
Immutable access to the Borrow<B> of a value. Read more
sourcefn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self where
Self: BorrowMut<B>,
B: ?Sized,
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self where
Self: BorrowMut<B>,
B: ?Sized,
Mutable access to the BorrowMut<B> of a value. Read more
sourcefn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self where
Self: AsRef<R>,
R: ?Sized,
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self where
Self: AsRef<R>,
R: ?Sized,
Immutable access to the AsRef<R> view of a value. Read more
sourcefn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self where
Self: AsMut<R>,
R: ?Sized,
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self where
Self: AsMut<R>,
R: ?Sized,
Mutable access to the AsMut<R> view of a value. Read more
sourcefn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self where
Self: Deref<Target = T>,
T: ?Sized,
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self where
Self: Deref<Target = T>,
T: ?Sized,
Immutable access to the Deref::Target of a value. Read more
sourcefn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self where
Self: DerefMut<Target = T> + Deref,
T: ?Sized,
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self where
Self: DerefMut<Target = T> + Deref,
T: ?Sized,
Mutable access to the Deref::Target of a value. Read more
sourcefn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
Calls .tap() only in debug builds, and is erased in release builds.
sourcefn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
Calls .tap_mut() only in debug builds, and is erased in release
builds. Read more
sourcefn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self where
Self: Borrow<B>,
B: ?Sized,
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self where
Self: Borrow<B>,
B: ?Sized,
Calls .tap_borrow() only in debug builds, and is erased in release
builds. Read more
sourcefn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self where
Self: BorrowMut<B>,
B: ?Sized,
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self where
Self: BorrowMut<B>,
B: ?Sized,
Calls .tap_borrow_mut() only in debug builds, and is erased in release
builds. Read more
sourcefn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self where
Self: AsRef<R>,
R: ?Sized,
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self where
Self: AsRef<R>,
R: ?Sized,
Calls .tap_ref() only in debug builds, and is erased in release
builds. Read more
sourcefn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self where
Self: AsMut<R>,
R: ?Sized,
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self where
Self: AsMut<R>,
R: ?Sized,
Calls .tap_ref_mut() only in debug builds, and is erased in release
builds. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more