Struct everscale_types::models::block::BlockIdShort
source · pub struct BlockIdShort {
pub shard: ShardIdent,
pub seqno: u32,
}Expand description
Short block id.
Fields§
§shard: ShardIdentBlock shard ident.
seqno: u32Block number in shard.
Trait Implementations§
source§impl Clone for BlockIdShort
impl Clone for BlockIdShort
source§fn clone(&self) -> BlockIdShort
fn clone(&self) -> BlockIdShort
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 BlockIdShort
impl Debug for BlockIdShort
source§impl Default for BlockIdShort
impl Default for BlockIdShort
source§fn default() -> BlockIdShort
fn default() -> BlockIdShort
Returns the “default value” for a type. Read more
source§impl Display for BlockIdShort
impl Display for BlockIdShort
source§impl From<(ShardIdent, u32)> for BlockIdShort
impl From<(ShardIdent, u32)> for BlockIdShort
source§fn from((shard, seqno): (ShardIdent, u32)) -> Self
fn from((shard, seqno): (ShardIdent, u32)) -> Self
Converts to this type from the input type.
source§impl From<BlockIdShort> for (ShardIdent, u32)
impl From<BlockIdShort> for (ShardIdent, u32)
source§fn from(value: BlockIdShort) -> Self
fn from(value: BlockIdShort) -> Self
Converts to this type from the input type.
source§impl Hash for BlockIdShort
impl Hash for BlockIdShort
source§impl Ord for BlockIdShort
impl Ord for BlockIdShort
source§fn cmp(&self, other: &BlockIdShort) -> Ordering
fn cmp(&self, other: &BlockIdShort) -> 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<BlockIdShort> for BlockIdShort
impl PartialEq<BlockIdShort> for BlockIdShort
source§fn eq(&self, other: &BlockIdShort) -> bool
fn eq(&self, other: &BlockIdShort) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<BlockIdShort> for BlockIdShort
impl PartialOrd<BlockIdShort> for BlockIdShort
source§fn partial_cmp(&self, other: &BlockIdShort) -> Option<Ordering>
fn partial_cmp(&self, other: &BlockIdShort) -> 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 moreimpl Copy for BlockIdShort
impl Eq for BlockIdShort
impl StructuralEq for BlockIdShort
impl StructuralPartialEq for BlockIdShort
Auto Trait Implementations§
impl RefUnwindSafe for BlockIdShort
impl Send for BlockIdShort
impl Sync for BlockIdShort
impl Unpin for BlockIdShort
impl UnwindSafe for BlockIdShort
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