Function parse_header
pub fn parse_header<Types, R>(
row: R,
) -> Result<<Types as NodeType>::BlockHeader, Error>Expand description
Extract a Header from a row.
We can’t implement [FromRow] for Header<Types> since Header<Types> is not actually a type
defined in this crate; it’s just an alias for Types::BlockHeader. So this standalone function
will have to do.