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: u32
Implementations
sourceimpl MilestoneIndex
impl MilestoneIndex
Trait Implementations
sourceimpl Add<MilestoneIndex> for MilestoneIndex
impl Add<MilestoneIndex> for MilestoneIndex
type Output = MilestoneIndex
type Output = MilestoneIndex
The resulting type after applying the +
operator.
sourceimpl Add<u32> for MilestoneIndex
impl Add<u32> for MilestoneIndex
sourceimpl Clone for MilestoneIndex
impl Clone for MilestoneIndex
sourcefn clone(&self) -> MilestoneIndex
fn clone(&self) -> MilestoneIndex
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 MilestoneIndex
impl Debug for MilestoneIndex
sourceimpl Default for MilestoneIndex
impl Default for MilestoneIndex
sourcefn default() -> MilestoneIndex
fn default() -> MilestoneIndex
Returns the “default value” for a type. Read more
sourceimpl Deref for MilestoneIndex
impl Deref for MilestoneIndex
sourceimpl Display for MilestoneIndex
impl Display for MilestoneIndex
sourceimpl From<u32> for MilestoneIndex
impl From<u32> for MilestoneIndex
sourceimpl Hash for MilestoneIndex
impl Hash for MilestoneIndex
sourceimpl Ord for MilestoneIndex
impl Ord for MilestoneIndex
sourceimpl Packable for MilestoneIndex
impl Packable for MilestoneIndex
sourcefn packed_len(&self) -> usize
fn packed_len(&self) -> usize
Returns the length of the packed bytes.
sourcefn 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.
sourcefn 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.
sourcefn 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.
sourceimpl PartialEq<MilestoneIndex> for MilestoneIndex
impl PartialEq<MilestoneIndex> for MilestoneIndex
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &MilestoneIndex) -> bool
fn ne(&self, other: &MilestoneIndex) -> bool
This method tests for !=
.
sourceimpl PartialOrd<MilestoneIndex> for MilestoneIndex
impl PartialOrd<MilestoneIndex> for MilestoneIndex
sourcefn partial_cmp(&self, other: &MilestoneIndex) -> Option<Ordering>
fn partial_cmp(&self, other: &MilestoneIndex) -> 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 Sub<MilestoneIndex> for MilestoneIndex
impl Sub<MilestoneIndex> for MilestoneIndex
type Output = MilestoneIndex
type Output = MilestoneIndex
The resulting type after applying the -
operator.
sourceimpl Sub<u32> for MilestoneIndex
impl Sub<u32> for MilestoneIndex
impl Copy for MilestoneIndex
impl Eq for MilestoneIndex
impl StructuralEq for MilestoneIndex
impl StructuralPartialEq for MilestoneIndex
Auto Trait Implementations
impl RefUnwindSafe for MilestoneIndex
impl Send for MilestoneIndex
impl Sync for MilestoneIndex
impl Unpin for MilestoneIndex
impl UnwindSafe for MilestoneIndex
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> 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