impl rf_ec