Shorts worn specifically for swimming and normally featuring drawstrings. Often times for men, but there are also those worn by ladies.
For brief-like trunks, use swim briefs.