type_float.go 573 Bytes
Newer Older
1 2 3
package schema

import (
tavit ohanian's avatar
tavit ohanian committed
4 5
	"gitlab.dms3.io/ld/go-ld-prime"
	schemadmt "gitlab.dms3.io/ld/go-ld-prime/schema/dmt"
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
)

type TypeFloat struct {
	name TypeName
	dmt  schemadmt.TypeFloat
	ts   *TypeSystem
}

// -- schema.Type interface satisfaction -->

var _ Type = (*TypeFloat)(nil)

func (t *TypeFloat) _Type() {}

func (t *TypeFloat) TypeSystem() *TypeSystem {
	return t.ts
}

24 25
func (TypeFloat) TypeKind() TypeKind {
	return TypeKind_Float
26 27 28 29 30 31
}

func (t *TypeFloat) Name() TypeName {
	return t.name
}

tavit ohanian's avatar
tavit ohanian committed
32 33
func (t TypeFloat) RepresentationBehavior() ld.Kind {
	return ld.Kind_Float
34
}