Weighing stars from birth to death: mass determination methods across the HRD