pub fn heap_type<T: ?Sized + Reencode>( reencoder: &mut T, heap_type: HeapType, ) -> Result<HeapType, Error<T::Error>>