Struct inspect_format::BlockIndex
source · pub struct BlockIndex(/* private fields */);
Implementations§
source§impl BlockIndex
impl BlockIndex
Methods from Deref<Target = u32>§
pub const MIN: u32 = 0u32
pub const MAX: u32 = 4_294_967_295u32
pub const BITS: u32 = 32u32
Trait Implementations§
source§impl Add<u32> for BlockIndex
impl Add<u32> for BlockIndex
source§impl Add for BlockIndex
impl Add for BlockIndex
source§impl AddAssign<u32> for BlockIndex
impl AddAssign<u32> for BlockIndex
source§fn add_assign(&mut self, other: u32)
fn add_assign(&mut self, other: u32)
Performs the
+=
operation. Read moresource§impl AddAssign for BlockIndex
impl AddAssign for BlockIndex
source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+=
operation. Read moresource§impl BitXor for BlockIndex
impl BitXor for BlockIndex
source§impl Clone for BlockIndex
impl Clone for BlockIndex
source§fn clone(&self) -> BlockIndex
fn clone(&self) -> BlockIndex
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 BlockIndex
impl Debug for BlockIndex
source§impl Deref for BlockIndex
impl Deref for BlockIndex
source§impl Display for BlockIndex
impl Display for BlockIndex
source§impl From<&BlockIndex> for usize
impl From<&BlockIndex> for usize
source§fn from(idx: &BlockIndex) -> usize
fn from(idx: &BlockIndex) -> usize
Converts to this type from the input type.
source§impl From<&u32> for BlockIndex
impl From<&u32> for BlockIndex
source§fn from(idx: &u32) -> BlockIndex
fn from(idx: &u32) -> BlockIndex
Converts to this type from the input type.
source§impl From<BlockIndex> for usize
impl From<BlockIndex> for usize
source§fn from(idx: BlockIndex) -> usize
fn from(idx: BlockIndex) -> usize
Converts to this type from the input type.
source§impl From<u32> for BlockIndex
impl From<u32> for BlockIndex
source§fn from(idx: u32) -> BlockIndex
fn from(idx: u32) -> BlockIndex
Converts to this type from the input type.
source§impl Hash for BlockIndex
impl Hash for BlockIndex
source§impl Ord for BlockIndex
impl Ord for BlockIndex
source§fn cmp(&self, other: &BlockIndex) -> Ordering
fn cmp(&self, other: &BlockIndex) -> 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 BlockIndex
impl PartialEq for BlockIndex
source§fn eq(&self, other: &BlockIndex) -> bool
fn eq(&self, other: &BlockIndex) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for BlockIndex
impl PartialOrd for BlockIndex
source§fn partial_cmp(&self, other: &BlockIndex) -> Option<Ordering>
fn partial_cmp(&self, other: &BlockIndex) -> Option<Ordering>
1.0.0 · source§fn 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 moresource§impl Sub<u32> for BlockIndex
impl Sub<u32> for BlockIndex
source§impl Sub for BlockIndex
impl Sub for BlockIndex
source§impl SubAssign<u32> for BlockIndex
impl SubAssign<u32> for BlockIndex
source§fn sub_assign(&mut self, other: u32)
fn sub_assign(&mut self, other: u32)
Performs the
-=
operation. Read moresource§impl SubAssign for BlockIndex
impl SubAssign for BlockIndex
source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Performs the
-=
operation. Read moreimpl Copy for BlockIndex
impl Eq for BlockIndex
impl StructuralPartialEq for BlockIndex
Auto Trait Implementations§
impl Freeze for BlockIndex
impl RefUnwindSafe for BlockIndex
impl Send for BlockIndex
impl Sync for BlockIndex
impl Unpin for BlockIndex
impl UnwindSafe for BlockIndex
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)