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