Function zerotrie::reader::take_value
source ยท pub(crate) fn take_value(trie: &mut &[u8]) -> Option<usize>
Expand description
Steps one node into the trie if the head node is a value node, returning the value. If the head node is not a value node, no change is made.
The input-output argument trie
starts at the original trie and ends pointing to
the sub-trie with the value node removed.