pub struct EpochExtReader<'r>(/* private fields */);
Implementations§
Source§impl<'r> EpochExtReader<'r>
impl<'r> EpochExtReader<'r>
pub const TOTAL_SIZE: usize = 108usize
pub const FIELD_SIZES: [usize; 8] = _
pub const FIELD_COUNT: usize = 8usize
pub fn previous_epoch_hash_rate(&self) -> Uint256Reader<'r>
pub fn last_block_hash_in_previous_epoch(&self) -> Byte32Reader<'r>
pub fn compact_target(&self) -> Uint32Reader<'r>
pub fn number(&self) -> Uint64Reader<'r>
pub fn base_block_reward(&self) -> Uint64Reader<'r>
pub fn remainder_reward(&self) -> Uint64Reader<'r>
pub fn start_number(&self) -> Uint64Reader<'r>
pub fn length(&self) -> Uint64Reader<'r>
Trait Implementations§
Source§impl<'r> Clone for EpochExtReader<'r>
impl<'r> Clone for EpochExtReader<'r>
Source§fn clone(&self) -> EpochExtReader<'r>
fn clone(&self) -> EpochExtReader<'r>
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<'r> Debug for EpochExtReader<'r>
impl<'r> Debug for EpochExtReader<'r>
Source§impl<'r> Display for EpochExtReader<'r>
impl<'r> Display for EpochExtReader<'r>
Source§impl<'r> LowerHex for EpochExtReader<'r>
impl<'r> LowerHex for EpochExtReader<'r>
Source§impl<'r> Reader<'r> for EpochExtReader<'r>
impl<'r> Reader<'r> for EpochExtReader<'r>
const NAME: &'static str = "EpochExtReader"
type Entity = EpochExt
fn to_entity(&self) -> <EpochExtReader<'r> as Reader<'r>>::Entity
fn new_unchecked(slice: &'r [u8]) -> EpochExtReader<'r>
fn as_slice(&self) -> &'r [u8] ⓘ
fn verify(slice: &[u8], _compatible: bool) -> Result<(), VerificationError>
fn from_slice(slice: &'r [u8]) -> Result<Self, VerificationError>
fn from_compatible_slice(slice: &'r [u8]) -> Result<Self, VerificationError>
Source§impl<'r> Unpack<EpochExt> for EpochExtReader<'r>
impl<'r> Unpack<EpochExt> for EpochExtReader<'r>
impl<'r> Copy for EpochExtReader<'r>
Auto Trait Implementations§
impl<'r> Freeze for EpochExtReader<'r>
impl<'r> RefUnwindSafe for EpochExtReader<'r>
impl<'r> Send for EpochExtReader<'r>
impl<'r> Sync for EpochExtReader<'r>
impl<'r> Unpin for EpochExtReader<'r>
impl<'r> UnwindSafe for EpochExtReader<'r>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<'r, R> FromSliceShouldBeOk<'r> for Rwhere
R: Reader<'r>,
impl<'r, R> FromSliceShouldBeOk<'r> for Rwhere
R: Reader<'r>,
Source§fn from_slice_should_be_ok(slice: &'r [u8]) -> R
fn from_slice_should_be_ok(slice: &'r [u8]) -> R
Unwraps the result of
from_slice(..)
with confidence and we assume that it’s impossible to fail.Source§fn from_compatible_slice_should_be_ok(slice: &'r [u8]) -> R
fn from_compatible_slice_should_be_ok(slice: &'r [u8]) -> R
Unwraps the result of
from_compatible_slice(..)
with confidence and we assume that it’s impossible to fail.