Skip to main content

head_term_from_region

Function head_term_from_region 

Source
pub fn head_term_from_region(region: &[u8]) -> Result<EncodedTerm, StorageError>
Expand description

Decode the term occupying region — a HeadVerdict::Candidate range sliced from its key, or a saved copy of one (encoded terms are valid standalone, so a flush can decode from a copy after the iterator moved on).