fn leaf_node(partial: &[u8], value: &[u8]) -> Vec<u8> {
		let mut output = partial_to_key(partial, LEAF_NODE_OFFSET, LEAF_NODE_BIG);
		value.encode_to(&mut output);
		output
	}
// FIXME: refactor this so that `partial` isn't already encoded with HPE. Should just be an `impl Iterator<Item=u8>`.
refactor this so that `partial` isn't already encoded with HPE. Should just be an `impl Iterator`.
refactor this so that ` partial ` isn ' t already encoded with HPE . Should just be an ` impl Iterator ` .
fn leaf_node(partial: &[u8], value: &[u8]) -> Vec<u8> {
		let mut output = partial_to_key(partial, LEAF_NODE_OFFSET, LEAF_NODE_BIG);
		value.encode_to(&mut output);
		output
	}
fn leaf_node ( partial : & [ u8 ] , value : & [ u8 ] ) -> Vec < u8 > { let mut output = partial_to_key ( partial , LEAF_NODE_OFFSET , LEAF_NODE_BIG ) ; value . encode_to ( & mut output ) ; output }
FIXME: refactor this so that `partial` isn't already encoded with HPE.
FIXME : refactor this so that ` partial ` isn ' t already encoded with HPE .
partial
&[u8]
value
&[u8]
partial
&[u8]
value
&[u8]