metonymy has definitions from the field of rhetoric
1
[ noun ] (rhetoric) substituting the name of an attribute or feature for the name of the thing itself (as in `they counted heads')

Related terms

trope metalepsis voice

*