The insurer not the airline will make the determination if the aircraft is a write off.
Lots of issues including recovery/repair and loss of use is covered. The insurer may then go after the 'third party' who caused the loss.
QF's claim vs. RR [and maybe Airbus] is separate from this.....