If made of suitable material , some underwear can serve as nightwear or swimsuits .
If made of suitable fabric , some types of underwear can serve as nightwear or swimsuits .