In the UK rwy hdg means maintain runway track ---
After takeoff for ATC Clearance purposes.
RWU,
But not elsewhere, except for a few places that follow UK.
Have a look at what "runway heading" means in terms of engine out procedure design, what does the calculation of the obstacle clearance envelope assume, that should raise a few more questions.
Tootle pip!!