fn ext_node(partial: &[u8], child: ChildReference<H::Out>) -> Vec<u8> {
		let mut output = partial_to_key(partial, EXTENSION_NODE_OFFSET, EXTENSION_NODE_BIG);
		match child {
			ChildReference::Hash(h) => 
				h.as_ref().encode_to(&mut output),
			ChildReference::Inline(inline_data, len) =>
				(&AsRef::<[u8]>::as_ref(&inline_data)[..len]).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 ext_node(partial: &[u8], child: ChildReference<H::Out>) -> Vec<u8> {
		let mut output = partial_to_key(partial, EXTENSION_NODE_OFFSET, EXTENSION_NODE_BIG);
		match child {
			ChildReference::Hash(h) => 
				h.as_ref().encode_to(&mut output),
			ChildReference::Inline(inline_data, len) =>
				(&AsRef::<[u8]>::as_ref(&inline_data)[..len]).encode_to(&mut output),
		};
		output
	}
fn ext_node ( partial : & [ u8 ] , child : ChildReference < H :: Out > ) -> Vec < u8 > { let mut output = partial_to_key ( partial , EXTENSION_NODE_OFFSET , EXTENSION_NODE_BIG ) ; match child { ChildReference :: Hash ( h ) => h . as_ref ( ) . encode_to ( & mut output ) , ChildReference :: Inline ( inline_data , len ) => ( & AsRef :: < [ u8 ] > :: as_ref ( & inline_data ) [ .. len ] ) . 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]
child
ChildReference<H::Out>
partial
&[u8]
child
ChildReference<H::Out>