dtype

package
v0.0.0-...-fcffdc5 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DKind

type DKind int
const (
	KNone DKind = iota
	KAny
	KString
	KInteger
	KPath
	KList
)

type DType

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

func Any

func Any() DType

func ConstPath

func ConstPath(typePath string) DType

func FromPath

func FromPath(typePath path.TypePath) DType

decodes path if it's not a datum, unlike Path

func Integer

func Integer() DType

func List

func List() DType

func None

func None() DType

func Path

func Path(typePath path.TypePath) DType

assumes that the type path is for a datum, unlike FromPath

func String

func String() DType

func (DType) IsAnyPath

func (d DType) IsAnyPath() bool

func (DType) IsInteger

func (d DType) IsInteger() bool

func (DType) IsList

func (d DType) IsList() bool

func (DType) IsNone

func (d DType) IsNone() bool

func (DType) IsPath

func (d DType) IsPath(path path.TypePath) bool

func (DType) IsPathConst

func (d DType) IsPathConst(tp string) bool

func (DType) IsString

func (d DType) IsString() bool

func (DType) Path

func (d DType) Path() path.TypePath

func (DType) String

func (d DType) String() string

Jump to

Keyboard shortcuts

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