pub trait IsDescendentOfBuilder<Hash> {
type Error: Error;
type IsDescendentOf: Fn(&Hash, &Hash) -> Result<bool, Self::Error>;
// Required method
fn build_is_descendent_of(
&self,
current: Option<(Hash, Hash)>
) -> Self::IsDescendentOf;
}
Expand description
A builder for is_descendent_of
functions.
Required Associated Types§
Required Methods§
sourcefn build_is_descendent_of(
&self,
current: Option<(Hash, Hash)>
) -> Self::IsDescendentOf
fn build_is_descendent_of( &self, current: Option<(Hash, Hash)> ) -> Self::IsDescendentOf
Build an is_descendent_of
function.
The current
parameter can be Some
with the details a fresh block whose
details aren’t yet stored, but its parent is.
The format of current
when Some
is (current, current_parent)
.