pub struct INITIAL_INTEREST_RATE_PER_BLOCK { /* private fields */ }
Expand description
This is the initial interest rate per block with scale:
4% / BLOCKS_PER_YEAR * INTEREST_RATE_PER_BLOCK_SCALE
.
Methods from Deref<Target = U256>§
pub const MAX: U256 = _
pub fn as_u64(&self) -> u64
pub fn as_u64(&self) -> u64
Conversion to u64 with overflow checking
§Panics
Panics if the number is larger than u64::max_value().
pub fn as_usize(&self) -> usize
pub fn as_usize(&self) -> usize
Conversion to usize with overflow checking
§Panics
Panics if the number is larger than usize::max_value().
pub fn leading_zeros(&self) -> u32
pub fn leading_zeros(&self) -> u32
Returns the number of leading zeros in the binary representation of self.
pub fn trailing_zeros(&self) -> u32
pub fn trailing_zeros(&self) -> u32
Returns the number of leading zeros in the binary representation of self.
pub fn to_big_endian(&self, bytes: &mut [u8])
pub fn to_big_endian(&self, bytes: &mut [u8])
Write to the slice in big-endian format.
pub fn to_little_endian(&self, bytes: &mut [u8])
pub fn to_little_endian(&self, bytes: &mut [u8])
Write to the slice in little-endian format.
Trait Implementations§
impl LazyStatic for INITIAL_INTEREST_RATE_PER_BLOCK
Auto Trait Implementations§
impl RefUnwindSafe for INITIAL_INTEREST_RATE_PER_BLOCK
impl Send for INITIAL_INTEREST_RATE_PER_BLOCK
impl Sync for INITIAL_INTEREST_RATE_PER_BLOCK
impl Unpin for INITIAL_INTEREST_RATE_PER_BLOCK
impl UnwindSafe for INITIAL_INTEREST_RATE_PER_BLOCK
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