Struct bee_message::milestone::MilestoneIndex
source · #[repr(transparent)]pub struct MilestoneIndex(pub u32);Expand description
A wrapper around a u32 that represents a milestone index.
Tuple Fields§
§0: u32Implementations§
Methods from Deref<Target = u32>§
Trait Implementations§
source§impl Add<MilestoneIndex> for MilestoneIndex
impl Add<MilestoneIndex> for MilestoneIndex
source§impl Add<u32> for MilestoneIndex
impl Add<u32> for MilestoneIndex
source§impl Clone for MilestoneIndex
impl Clone for MilestoneIndex
source§fn clone(&self) -> MilestoneIndex
fn clone(&self) -> MilestoneIndex
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 MilestoneIndex
impl Debug for MilestoneIndex
source§impl Default for MilestoneIndex
impl Default for MilestoneIndex
source§fn default() -> MilestoneIndex
fn default() -> MilestoneIndex
Returns the “default value” for a type. Read more
source§impl Deref for MilestoneIndex
impl Deref for MilestoneIndex
source§impl Display for MilestoneIndex
impl Display for MilestoneIndex
source§impl From<u32> for MilestoneIndex
impl From<u32> for MilestoneIndex
source§impl Hash for MilestoneIndex
impl Hash for MilestoneIndex
source§impl Ord for MilestoneIndex
impl Ord for MilestoneIndex
source§fn cmp(&self, other: &MilestoneIndex) -> Ordering
fn cmp(&self, other: &MilestoneIndex) -> 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 Packable for MilestoneIndex
impl Packable for MilestoneIndex
source§fn packed_len(&self) -> usize
fn packed_len(&self) -> usize
Returns the length of the packed bytes.
source§fn pack<W: Write>(&self, writer: &mut W) -> Result<(), Self::Error>
fn pack<W: Write>(&self, writer: &mut W) -> Result<(), Self::Error>
Packs the instance to bytes and writes them to the passed writer.
source§fn unpack_inner<R: Read + ?Sized, const CHECK: bool>(
reader: &mut R
) -> Result<Self, Self::Error>
fn unpack_inner<R: Read + ?Sized, const CHECK: bool>( reader: &mut R ) -> Result<Self, Self::Error>
Reads bytes from the passed reader and unpacks them into an instance.
source§fn pack_new(&self) -> Vec<u8, Global>
fn pack_new(&self) -> Vec<u8, Global>
Packs the instance to bytes and writes them to a newly allocated vector.
source§impl PartialEq<MilestoneIndex> for MilestoneIndex
impl PartialEq<MilestoneIndex> for MilestoneIndex
source§fn eq(&self, other: &MilestoneIndex) -> bool
fn eq(&self, other: &MilestoneIndex) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<MilestoneIndex> for MilestoneIndex
impl PartialOrd<MilestoneIndex> for MilestoneIndex
source§fn partial_cmp(&self, other: &MilestoneIndex) -> Option<Ordering>
fn partial_cmp(&self, other: &MilestoneIndex) -> 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 more