* Adjective: Describing a quality or state of being inflexible or unyielding.
* Example: "The metal bars were rigid and unbreakable."
* Noun: Referring to a fixed or unchangeable quality or rule.
* Example: "There was a rigid adherence to the company's dress code."
So, the part of speech of "rigid" depends on the context of the sentence.