We can not write a common interface for classes and structs. Concepts or constraints can provide that.