mirror of
https://github.com/luxfi/lattice.git
synced 2026-09-24 00:25:44 +00:00
15 lines
287 B
Go
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
|
|
}
|