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