The trucks are already "electric" having diesal generators that power electric axle motors.
Dynamic charging probably means auto hooking a charger at the excavator (which are often electric - they don't move much and can have fat ass HV cables running to them that are dragged when the excavator moves) to boost batteries on the trucks while they park as they're loaded.
Optimal performance is no truck idle save when being loaded - dumping is relatively quick.