As nouns,
bathing trunks is a hyponym of
swimming costume; that is, bathing trunks is a
word with a more specific, narrower meaning than
swimming costume:
swimming costume: tight fitting garment worn for swimming
bathing trunks: swimsuit worn by men while swimming