ds/int_ring.go

14 lines
160 B
Go
Raw Normal View History

2023-07-10 17:16:51 +02:00
package ds
type Ring[T any] interface {
Iterable[*T]
Next() Ring[T]
Prev() Ring[T]
Set(T)
Has() bool
Get() (T, bool)
GetOrDefault(defaultValue T) T
}