fn write_schema<W: Write>( schema: &TypePtr, writer: &mut ThriftCompactOutputProtocol<W>, ) -> Result<()>