Files
lattigo/utils/structs/structs.go
2023-10-05 11:22:36 +02:00

15 lines
287 B
Go

// Package structs implements helpers to generalize vectors and matrices of structs, as well as their serialization.
package structs
type Equatable[T any] interface {
Equal(*T) bool
}
type CopyNewer[V any] interface {
CopyNew() *V
}
type BinarySizer interface {
BinarySize() int
}