Versions in this module Expand all Collapse all v0 v0.0.2 Jan 19, 2025 v0.0.1 Dec 8, 2024 Changes in this version + var RANDOM_SEED_STRING maphash.Seed = maphash.MakeSeed() + type Arith struct + func (w *Arith[T, I]) Add(res *T, l *T, r *T) + func (w *Arith[T, I]) Div(res *T, l *T, r *T) + func (w *Arith[T, I]) Mul(res *T, l *T, r *T) + func (w *Arith[T, I]) Neg(v *T) + func (w *Arith[T, I]) Neq(l *T, r *T) bool + func (w *Arith[T, I]) Sub(res *T, l *T, r *T) + func (w *Arith[T, I]) UnitVal() T + func (w *Arith[T, I]) ZeroVal() T + type ArithInterface interface + Add func(res *T, l *T, r *T) + Div func(res *T, l *T, r *T) + Mul func(res *T, l *T, r *T) + Neg func(v *T) + Sub func(res *T, l *T, r *T) + UnitVal func() T + ZeroVal func() T + type ArithPntr struct + func (p ArithPntr[T, I]) Add(res **T, l **T, r **T) + func (p ArithPntr[T, I]) Div(res **T, l **T, r **T) + func (p ArithPntr[T, I]) Eq(l **T, r **T) bool + func (p ArithPntr[T, I]) Hash(other **T) hash.Hash + func (p ArithPntr[T, I]) Mul(res **T, l **T, r **T) + func (p ArithPntr[T, I]) Neg(v **T) + func (p ArithPntr[T, I]) Sub(res **T, l **T, r **T) + func (p ArithPntr[T, I]) UnitVal() *T + func (p ArithPntr[T, I]) Zero(other **T) + func (p ArithPntr[T, I]) ZeroVal() *T + type Base struct + func (w *Base[T, I]) Eq(l *T, r *T) bool + func (w *Base[T, I]) Hash(v *T) hash.Hash + func (w *Base[T, I]) Neq(l *T, r *T) bool + func (w *Base[T, I]) Zero(v *T) + type BaseInterface interface + Eq func(l *T, r *T) bool + Hash func(v *T) hash.Hash + Zero func(v *T) + type BasePntr struct + func (p BasePntr[T, I]) Eq(l **T, r **T) bool + func (p BasePntr[T, I]) Hash(other **T) hash.Hash + func (p BasePntr[T, I]) Zero(other **T) + type BuiltinBool struct + func (_ BuiltinBool) Eq(l *bool, r *bool) bool + func (_ BuiltinBool) Hash(v *bool) hash.Hash + func (_ BuiltinBool) Zero(other *bool) + type BuiltinByte struct + func (_ BuiltinByte) Add(res *byte, l *byte, r *byte) + func (_ BuiltinByte) Div(res *byte, l *byte, r *byte) + func (_ BuiltinByte) Eq(l *byte, r *byte) bool + func (_ BuiltinByte) Hash(v *byte) hash.Hash + func (_ BuiltinByte) Lt(l *byte, r *byte) bool + func (_ BuiltinByte) Mul(res *byte, l *byte, r *byte) + func (_ BuiltinByte) Neg(v *byte) + func (_ BuiltinByte) Sub(res *byte, l *byte, r *byte) + func (_ BuiltinByte) UnitVal() byte + func (_ BuiltinByte) Zero(other *byte) + func (_ BuiltinByte) ZeroVal() byte + type BuiltinComplex128 struct + func (_ BuiltinComplex128) Add(res *complex128, l *complex128, r *complex128) + func (_ BuiltinComplex128) Div(res *complex128, l *complex128, r *complex128) + func (_ BuiltinComplex128) Eq(l *complex128, r *complex128) bool + func (_ BuiltinComplex128) Hash(v *complex128) hash.Hash + func (_ BuiltinComplex128) Mul(res *complex128, l *complex128, r *complex128) + func (_ BuiltinComplex128) Neg(v *complex128) + func (_ BuiltinComplex128) Sub(res *complex128, l *complex128, r *complex128) + func (_ BuiltinComplex128) UnitVal() complex128 + func (_ BuiltinComplex128) Zero(other *complex128) + func (_ BuiltinComplex128) ZeroVal() complex128 + type BuiltinComplex64 struct + func (_ BuiltinComplex64) Add(res *complex64, l *complex64, r *complex64) + func (_ BuiltinComplex64) Div(res *complex64, l *complex64, r *complex64) + func (_ BuiltinComplex64) Eq(l *complex64, r *complex64) bool + func (_ BuiltinComplex64) Hash(v *complex64) hash.Hash + func (_ BuiltinComplex64) Mul(res *complex64, l *complex64, r *complex64) + func (_ BuiltinComplex64) Neg(v *complex64) + func (_ BuiltinComplex64) Sub(res *complex64, l *complex64, r *complex64) + func (_ BuiltinComplex64) UnitVal() complex64 + func (_ BuiltinComplex64) Zero(other *complex64) + func (_ BuiltinComplex64) ZeroVal() complex64 + type BuiltinFloat32 struct + func (_ BuiltinFloat32) Add(res *float32, l *float32, r *float32) + func (_ BuiltinFloat32) Div(res *float32, l *float32, r *float32) + func (_ BuiltinFloat32) Eq(l *float32, r *float32) bool + func (_ BuiltinFloat32) Hash(v *float32) hash.Hash + func (_ BuiltinFloat32) Lt(l *float32, r *float32) bool + func (_ BuiltinFloat32) Mul(res *float32, l *float32, r *float32) + func (_ BuiltinFloat32) Neg(v *float32) + func (_ BuiltinFloat32) Sub(res *float32, l *float32, r *float32) + func (_ BuiltinFloat32) UnitVal() float32 + func (_ BuiltinFloat32) Zero(other *float32) + func (_ BuiltinFloat32) ZeroVal() float32 + type BuiltinFloat64 struct + func (_ BuiltinFloat64) Add(res *float64, l *float64, r *float64) + func (_ BuiltinFloat64) Div(res *float64, l *float64, r *float64) + func (_ BuiltinFloat64) Eq(l *float64, r *float64) bool + func (_ BuiltinFloat64) Hash(v *float64) hash.Hash + func (_ BuiltinFloat64) Lt(l *float64, r *float64) bool + func (_ BuiltinFloat64) Mul(res *float64, l *float64, r *float64) + func (_ BuiltinFloat64) Neg(v *float64) + func (_ BuiltinFloat64) Sub(res *float64, l *float64, r *float64) + func (_ BuiltinFloat64) UnitVal() float64 + func (_ BuiltinFloat64) Zero(other *float64) + func (_ BuiltinFloat64) ZeroVal() float64 + type BuiltinHash struct + func (_ BuiltinHash) Add(res *hash.Hash, l *hash.Hash, r *hash.Hash) + func (_ BuiltinHash) Div(res *hash.Hash, l *hash.Hash, r *hash.Hash) + func (_ BuiltinHash) Eq(l *hash.Hash, r *hash.Hash) bool + func (_ BuiltinHash) Hash(v *hash.Hash) hash.Hash + func (_ BuiltinHash) Lt(l *hash.Hash, r *hash.Hash) bool + func (_ BuiltinHash) Mul(res *hash.Hash, l *hash.Hash, r *hash.Hash) + func (_ BuiltinHash) Neg(v *hash.Hash) + func (_ BuiltinHash) Sub(res *hash.Hash, l *hash.Hash, r *hash.Hash) + func (_ BuiltinHash) UnitVal() hash.Hash + func (_ BuiltinHash) Zero(other *hash.Hash) + func (_ BuiltinHash) ZeroVal() hash.Hash + type BuiltinInt struct + func (_ BuiltinInt) Add(res *int, l *int, r *int) + func (_ BuiltinInt) Div(res *int, l *int, r *int) + func (_ BuiltinInt) Eq(l *int, r *int) bool + func (_ BuiltinInt) Hash(v *int) hash.Hash + func (_ BuiltinInt) Lt(l *int, r *int) bool + func (_ BuiltinInt) Mul(res *int, l *int, r *int) + func (_ BuiltinInt) Neg(v *int) + func (_ BuiltinInt) Sub(res *int, l *int, r *int) + func (_ BuiltinInt) UnitVal() int + func (_ BuiltinInt) Zero(other *int) + func (_ BuiltinInt) ZeroVal() int + type BuiltinInt16 struct + func (_ BuiltinInt16) Add(res *int16, l *int16, r *int16) + func (_ BuiltinInt16) Div(res *int16, l *int16, r *int16) + func (_ BuiltinInt16) Eq(l *int16, r *int16) bool + func (_ BuiltinInt16) Hash(v *int16) hash.Hash + func (_ BuiltinInt16) Lt(l *int16, r *int16) bool + func (_ BuiltinInt16) Mul(res *int16, l *int16, r *int16) + func (_ BuiltinInt16) Neg(v *int16) + func (_ BuiltinInt16) Sub(res *int16, l *int16, r *int16) + func (_ BuiltinInt16) UnitVal() int16 + func (_ BuiltinInt16) Zero(other *int16) + func (_ BuiltinInt16) ZeroVal() int16 + type BuiltinInt32 struct + func (_ BuiltinInt32) Add(res *int32, l *int32, r *int32) + func (_ BuiltinInt32) Div(res *int32, l *int32, r *int32) + func (_ BuiltinInt32) Eq(l *int32, r *int32) bool + func (_ BuiltinInt32) Hash(v *int32) hash.Hash + func (_ BuiltinInt32) Lt(l *int32, r *int32) bool + func (_ BuiltinInt32) Mul(res *int32, l *int32, r *int32) + func (_ BuiltinInt32) Neg(v *int32) + func (_ BuiltinInt32) Sub(res *int32, l *int32, r *int32) + func (_ BuiltinInt32) UnitVal() int32 + func (_ BuiltinInt32) Zero(other *int32) + func (_ BuiltinInt32) ZeroVal() int32 + type BuiltinInt64 struct + func (_ BuiltinInt64) Add(res *int64, l *int64, r *int64) + func (_ BuiltinInt64) Div(res *int64, l *int64, r *int64) + func (_ BuiltinInt64) Eq(l *int64, r *int64) bool + func (_ BuiltinInt64) Hash(v *int64) hash.Hash + func (_ BuiltinInt64) Lt(l *int64, r *int64) bool + func (_ BuiltinInt64) Mul(res *int64, l *int64, r *int64) + func (_ BuiltinInt64) Neg(v *int64) + func (_ BuiltinInt64) Sub(res *int64, l *int64, r *int64) + func (_ BuiltinInt64) UnitVal() int64 + func (_ BuiltinInt64) Zero(other *int64) + func (_ BuiltinInt64) ZeroVal() int64 + type BuiltinInt8 struct + func (_ BuiltinInt8) Add(res *int8, l *int8, r *int8) + func (_ BuiltinInt8) Div(res *int8, l *int8, r *int8) + func (_ BuiltinInt8) Eq(l *int8, r *int8) bool + func (_ BuiltinInt8) Hash(v *int8) hash.Hash + func (_ BuiltinInt8) Lt(l *int8, r *int8) bool + func (_ BuiltinInt8) Mul(res *int8, l *int8, r *int8) + func (_ BuiltinInt8) Neg(v *int8) + func (_ BuiltinInt8) Sub(res *int8, l *int8, r *int8) + func (_ BuiltinInt8) UnitVal() int8 + func (_ BuiltinInt8) Zero(other *int8) + func (_ BuiltinInt8) ZeroVal() int8 + type BuiltinString struct + func (_ BuiltinString) Eq(l *string, r *string) bool + func (_ BuiltinString) Hash(v *string) hash.Hash + func (_ BuiltinString) Lt(l *string, r *string) bool + func (_ BuiltinString) Zero(other *string) + type BuiltinUint struct + func (_ BuiltinUint) Add(res *uint, l *uint, r *uint) + func (_ BuiltinUint) Div(res *uint, l *uint, r *uint) + func (_ BuiltinUint) Eq(l *uint, r *uint) bool + func (_ BuiltinUint) Hash(v *uint) hash.Hash + func (_ BuiltinUint) Lt(l *uint, r *uint) bool + func (_ BuiltinUint) Mul(res *uint, l *uint, r *uint) + func (_ BuiltinUint) Neg(v *uint) + func (_ BuiltinUint) Sub(res *uint, l *uint, r *uint) + func (_ BuiltinUint) UnitVal() uint + func (_ BuiltinUint) Zero(other *uint) + func (_ BuiltinUint) ZeroVal() uint + type BuiltinUint16 struct + func (_ BuiltinUint16) Add(res *uint16, l *uint16, r *uint16) + func (_ BuiltinUint16) Div(res *uint16, l *uint16, r *uint16) + func (_ BuiltinUint16) Eq(l *uint16, r *uint16) bool + func (_ BuiltinUint16) Hash(v *uint16) hash.Hash + func (_ BuiltinUint16) Lt(l *uint16, r *uint16) bool + func (_ BuiltinUint16) Mul(res *uint16, l *uint16, r *uint16) + func (_ BuiltinUint16) Neg(v *uint16) + func (_ BuiltinUint16) Sub(res *uint16, l *uint16, r *uint16) + func (_ BuiltinUint16) UnitVal() uint16 + func (_ BuiltinUint16) Zero(other *uint16) + func (_ BuiltinUint16) ZeroVal() uint16 + type BuiltinUint32 struct + func (_ BuiltinUint32) Add(res *uint32, l *uint32, r *uint32) + func (_ BuiltinUint32) Div(res *uint32, l *uint32, r *uint32) + func (_ BuiltinUint32) Eq(l *uint32, r *uint32) bool + func (_ BuiltinUint32) Hash(v *uint32) hash.Hash + func (_ BuiltinUint32) Lt(l *uint32, r *uint32) bool + func (_ BuiltinUint32) Mul(res *uint32, l *uint32, r *uint32) + func (_ BuiltinUint32) Neg(v *uint32) + func (_ BuiltinUint32) Sub(res *uint32, l *uint32, r *uint32) + func (_ BuiltinUint32) UnitVal() uint32 + func (_ BuiltinUint32) Zero(other *uint32) + func (_ BuiltinUint32) ZeroVal() uint32 + type BuiltinUint64 struct + func (_ BuiltinUint64) Add(res *uint64, l *uint64, r *uint64) + func (_ BuiltinUint64) Div(res *uint64, l *uint64, r *uint64) + func (_ BuiltinUint64) Eq(l *uint64, r *uint64) bool + func (_ BuiltinUint64) Hash(v *uint64) hash.Hash + func (_ BuiltinUint64) Lt(l *uint64, r *uint64) bool + func (_ BuiltinUint64) Mul(res *uint64, l *uint64, r *uint64) + func (_ BuiltinUint64) Neg(v *uint64) + func (_ BuiltinUint64) Sub(res *uint64, l *uint64, r *uint64) + func (_ BuiltinUint64) UnitVal() uint64 + func (_ BuiltinUint64) Zero(other *uint64) + func (_ BuiltinUint64) ZeroVal() uint64 + type BuiltinUint8 struct + func (_ BuiltinUint8) Add(res *uint8, l *uint8, r *uint8) + func (_ BuiltinUint8) Div(res *uint8, l *uint8, r *uint8) + func (_ BuiltinUint8) Eq(l *uint8, r *uint8) bool + func (_ BuiltinUint8) Hash(v *uint8) hash.Hash + func (_ BuiltinUint8) Lt(l *uint8, r *uint8) bool + func (_ BuiltinUint8) Mul(res *uint8, l *uint8, r *uint8) + func (_ BuiltinUint8) Neg(v *uint8) + func (_ BuiltinUint8) Sub(res *uint8, l *uint8, r *uint8) + func (_ BuiltinUint8) UnitVal() uint8 + func (_ BuiltinUint8) Zero(other *uint8) + func (_ BuiltinUint8) ZeroVal() uint8 + type BuiltinUintptr struct + func (_ BuiltinUintptr) Add(res *uintptr, l *uintptr, r *uintptr) + func (_ BuiltinUintptr) Div(res *uintptr, l *uintptr, r *uintptr) + func (_ BuiltinUintptr) Eq(l *uintptr, r *uintptr) bool + func (_ BuiltinUintptr) Hash(v *uintptr) hash.Hash + func (_ BuiltinUintptr) Lt(l *uintptr, r *uintptr) bool + func (_ BuiltinUintptr) Mul(res *uintptr, l *uintptr, r *uintptr) + func (_ BuiltinUintptr) Neg(v *uintptr) + func (_ BuiltinUintptr) Sub(res *uintptr, l *uintptr, r *uintptr) + func (_ BuiltinUintptr) UnitVal() uintptr + func (_ BuiltinUintptr) Zero(other *uintptr) + func (_ BuiltinUintptr) ZeroVal() uintptr + type NilWidget struct + func (n NilWidget[T]) Eq(l *T, r *T) bool + func (n NilWidget[T]) Hash(other *T) hash.Hash + func (n NilWidget[T]) Lt(l *T, r *T) bool + func (n NilWidget[T]) Zero(other *T) + type PartialOrder struct + func (w *PartialOrder[T, I]) Gt(l *T, r *T) bool + func (w *PartialOrder[T, I]) Gte(l *T, r *T) bool + func (w *PartialOrder[T, I]) Lt(l *T, r *T) bool + func (w *PartialOrder[T, I]) Lte(l *T, r *T) bool + type PartialOrderArith struct + func (w *PartialOrderArith[T, I]) Add(res *T, l *T, r *T) + func (w *PartialOrderArith[T, I]) Div(res *T, l *T, r *T) + func (w *PartialOrderArith[T, I]) Gt(l *T, r *T) bool + func (w *PartialOrderArith[T, I]) Gte(l *T, r *T) bool + func (w *PartialOrderArith[T, I]) Lt(l *T, r *T) bool + func (w *PartialOrderArith[T, I]) Lte(l *T, r *T) bool + func (w *PartialOrderArith[T, I]) Mul(res *T, l *T, r *T) + func (w *PartialOrderArith[T, I]) Neg(v *T) + func (w *PartialOrderArith[T, I]) Neq(l *T, r *T) bool + func (w *PartialOrderArith[T, I]) Sub(res *T, l *T, r *T) + func (w *PartialOrderArith[T, I]) UnitVal() T + func (w *PartialOrderArith[T, I]) ZeroVal() T + type PartialOrderArithInterface interface + type PartialOrderArithPntr struct + func (p PartialOrderArithPntr[T, I]) Add(res **T, l **T, r **T) + func (p PartialOrderArithPntr[T, I]) Div(res **T, l **T, r **T) + func (p PartialOrderArithPntr[T, I]) Eq(l **T, r **T) bool + func (p PartialOrderArithPntr[T, I]) Hash(other **T) hash.Hash + func (p PartialOrderArithPntr[T, I]) Lt(l **T, r **T) bool + func (p PartialOrderArithPntr[T, I]) Mul(res **T, l **T, r **T) + func (p PartialOrderArithPntr[T, I]) Neg(v **T) + func (p PartialOrderArithPntr[T, I]) Sub(res **T, l **T, r **T) + func (p PartialOrderArithPntr[T, I]) UnitVal() *T + func (p PartialOrderArithPntr[T, I]) Zero(other **T) + func (p PartialOrderArithPntr[T, I]) ZeroVal() *T + type PartialOrderInterface interface + Lt func(l *T, r *T) bool + type PartialOrderPntr struct + func (p PartialOrderPntr[T, I]) Eq(l **T, r **T) bool + func (p PartialOrderPntr[T, I]) Hash(other **T) hash.Hash + func (p PartialOrderPntr[T, I]) Lt(l **T, r **T) bool + func (p PartialOrderPntr[T, I]) Zero(other **T) + type ZeroStructWidget struct + func (z ZeroStructWidget) Eq(l *struct{}, r *struct{}) bool + func (z ZeroStructWidget) Hash(other *struct{}) hash.Hash + func (z ZeroStructWidget) Lt(l *struct{}, r *struct{}) bool + func (z ZeroStructWidget) Zero(other *struct{})