indexing

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package index provides support for abstract integral index to pal.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type C added in v0.0.3

type C struct {
	// contains filtered or unexported fields
}

func (C) PlainDecode added in v0.0.3

func (c C) PlainDecode(r io.Reader) error

func (C) PlainEncode added in v0.0.3

func (c C) PlainEncode(w io.Writer) error

type I

type I interface {
	plain.Coder
}

type T

type T interface {
	// replace with go/constant.
	Zero() I
	One() I
	// replace with go/constant?
	ToInt64(v I) (i int64, ok bool)

	FromInt64(i int64) I

	IsVar(v I) bool
	Var() I

	Plus(a, b I) I
	Times(a, b I) I

	Div(a, b I) (I, xtruth.T)
	Rem(a, b I) (I, xtruth.T)

	Band(a, b I) I
	Bnot(a I) I

	Lshift(a, s I) (I, xtruth.T)
	Rshift(a, s I) (I, xtruth.T)

	Equal(a, b I) xtruth.T
	Less(a, b I) xtruth.T

	plain.Coder
}

func ConstVals

func ConstVals() T

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL