mirror of
https://github.com/tuneinsight/lattigo.git
synced 2025-09-13 03:27:14 +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
|
|
}
|