Struct everscale_types::num::SplitDepth
source · #[repr(transparent)]pub struct SplitDepth(_);Expand description
Account split depth. Fixed-length 5-bit integer of range 1..=30
Implementations§
source§impl SplitDepth
impl SplitDepth
sourcepub const fn new(value: u8) -> Result<Self, Error>
pub const fn new(value: u8) -> Result<Self, Error>
Creates a new integer value from a primitive integer.
sourcepub const fn from_bit_len(bit_len: u16) -> Result<Self, Error>
pub const fn from_bit_len(bit_len: u16) -> Result<Self, Error>
Creates a new integer value from bit len.
sourcepub const fn into_bit_len(self) -> u16
pub const fn into_bit_len(self) -> u16
Converts split depths into the number of bits.
Trait Implementations§
source§impl Clone for SplitDepth
impl Clone for SplitDepth
source§fn clone(&self) -> SplitDepth
fn clone(&self) -> SplitDepth
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 SplitDepth
impl Debug for SplitDepth
source§impl<'a> Load<'a> for SplitDepth
impl<'a> Load<'a> for SplitDepth
source§impl Ord for SplitDepth
impl Ord for SplitDepth
source§fn cmp(&self, other: &SplitDepth) -> Ordering
fn cmp(&self, other: &SplitDepth) -> 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<SplitDepth> for SplitDepth
impl PartialEq<SplitDepth> for SplitDepth
source§fn eq(&self, other: &SplitDepth) -> bool
fn eq(&self, other: &SplitDepth) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<SplitDepth> for SplitDepth
impl PartialOrd<SplitDepth> for SplitDepth
source§fn partial_cmp(&self, other: &SplitDepth) -> Option<Ordering>
fn partial_cmp(&self, other: &SplitDepth) -> 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 Store for SplitDepth
impl Store for SplitDepth
source§fn store_into(
&self,
builder: &mut CellBuilder,
_: &mut dyn Finalizer
) -> Result<(), Error>
fn store_into( &self, builder: &mut CellBuilder, _: &mut dyn Finalizer ) -> Result<(), Error>
Tries to store itself into the cell builder.