When a part of something is used to refer to the whole, for example, "all hands on deck" instead of "all sailors on deck.".