pub struct Parent<'a> {
pub block: &'a Block,
pub generation_hash: GenerationHash,
pub recent: &'a [BlockStatistic],
pub importance_hash: Hash256,
}Expand description
親のブロックと、そこまでのチェーンから決まるもの
Fields§
§block: &'a Block§generation_hash: GenerationHash§recent: &'a [BlockStatistic]直前のブロック(親を含む)を古い順に、難易度を求めるのに要る数(maxDifficultyBlocks)まで
importance_hash: Hash256親までで最後の importance ブロック(なければ Nemesis)のハッシュ
Auto Trait Implementations§
impl<'a> Freeze for Parent<'a>
impl<'a> RefUnwindSafe for Parent<'a>
impl<'a> Send for Parent<'a>
impl<'a> Sync for Parent<'a>
impl<'a> Unpin for Parent<'a>
impl<'a> UnsafeUnpin for Parent<'a>
impl<'a> UnwindSafe for Parent<'a>
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more