In computer science structural equality states that two objects can be considered to be of the same type if the two objects are the same at a structural level regardless of what their actual type names are. Contrast with name equality.