Vegetative part of a fungus, which is composed of a mass of hyphae and distinct from the fruiting body.