Struct grin_chain::types::OutputRoots [−][src]
A helper for the various output roots.
Fields
pmmr_root: Hash
The output PMMR root
bitmap_root: Hash
The bitmap accumulator root
Implementations
impl OutputRoots
[src]
impl OutputRoots
[src]pub fn root(&self, header: &BlockHeader) -> Hash
[src]
pub fn root(&self, header: &BlockHeader) -> Hash
[src]The root of our output PMMR. The rules here are block height specific. We use the merged root here for header version 3 and later. We assume the header version is consistent with the block height, validated as part of pipe::validate_header().
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for OutputRoots
impl Send for OutputRoots
impl Sync for OutputRoots
impl Unpin for OutputRoots
impl UnwindSafe for OutputRoots
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> SafeBorrow<T> for T where
T: ?Sized,
impl<T> SafeBorrow<T> for T where
T: ?Sized,
pub fn borrow_replacement(ptr: &T) -> &T
pub fn borrow_replacement(ptr: &T) -> &T
Given ptr
, which was obtained from a prior call to Self::borrow()
,
return a value with the same nominal lifetime which is guaranteed to
survive mutations to Self
. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> DebugAny for T where
T: Any + Debug,
T: Any + Debug,
impl<T> UnsafeAny for T where
T: Any,
T: Any,