Rapiers are generally cut-and-thrust, but they’re very thrust-centric, so them not being able to do slashing damage is probably more justified than longswords not being able to do piercing damage.
I mean, historically people didn’t really categorize swords all that much. Mostly they called them...