Files
dolt/types/primitives.go
2015-07-29 16:06:54 -07:00

226 lines
3.2 KiB
Go

// DO NOT EDIT: This file was generated.
// To regenerate, run `go generate` in this package.
package types
import (
"github.com/attic-labs/noms/ref"
)
type Bool bool
func (self Bool) Equals(other Value) bool {
if other, ok := other.(Bool); ok {
return self == other
} else {
return false
}
}
func (v Bool) Ref() ref.Ref {
return getRef(v)
}
func (v Bool) Chunks() []Future {
return nil
}
func (v Bool) Release() {
}
func BoolFromVal(v Value) Bool {
return v.(Bool)
}
type Int16 int16
func (self Int16) Equals(other Value) bool {
if other, ok := other.(Int16); ok {
return self == other
} else {
return false
}
}
func (v Int16) Ref() ref.Ref {
return getRef(v)
}
func (v Int16) Chunks() []Future {
return nil
}
func (v Int16) Release() {
}
func Int16FromVal(v Value) Int16 {
return v.(Int16)
}
type Int32 int32
func (self Int32) Equals(other Value) bool {
if other, ok := other.(Int32); ok {
return self == other
} else {
return false
}
}
func (v Int32) Ref() ref.Ref {
return getRef(v)
}
func (v Int32) Chunks() []Future {
return nil
}
func (v Int32) Release() {
}
func Int32FromVal(v Value) Int32 {
return v.(Int32)
}
type Int64 int64
func (self Int64) Equals(other Value) bool {
if other, ok := other.(Int64); ok {
return self == other
} else {
return false
}
}
func (v Int64) Ref() ref.Ref {
return getRef(v)
}
func (v Int64) Chunks() []Future {
return nil
}
func (v Int64) Release() {
}
func Int64FromVal(v Value) Int64 {
return v.(Int64)
}
type UInt16 uint16
func (self UInt16) Equals(other Value) bool {
if other, ok := other.(UInt16); ok {
return self == other
} else {
return false
}
}
func (v UInt16) Ref() ref.Ref {
return getRef(v)
}
func (v UInt16) Chunks() []Future {
return nil
}
func (v UInt16) Release() {
}
func UInt16FromVal(v Value) UInt16 {
return v.(UInt16)
}
type UInt32 uint32
func (self UInt32) Equals(other Value) bool {
if other, ok := other.(UInt32); ok {
return self == other
} else {
return false
}
}
func (v UInt32) Ref() ref.Ref {
return getRef(v)
}
func (v UInt32) Chunks() []Future {
return nil
}
func (v UInt32) Release() {
}
func UInt32FromVal(v Value) UInt32 {
return v.(UInt32)
}
type UInt64 uint64
func (self UInt64) Equals(other Value) bool {
if other, ok := other.(UInt64); ok {
return self == other
} else {
return false
}
}
func (v UInt64) Ref() ref.Ref {
return getRef(v)
}
func (v UInt64) Chunks() []Future {
return nil
}
func (v UInt64) Release() {
}
func UInt64FromVal(v Value) UInt64 {
return v.(UInt64)
}
type Float32 float32
func (self Float32) Equals(other Value) bool {
if other, ok := other.(Float32); ok {
return self == other
} else {
return false
}
}
func (v Float32) Ref() ref.Ref {
return getRef(v)
}
func (v Float32) Chunks() []Future {
return nil
}
func (v Float32) Release() {
}
func Float32FromVal(v Value) Float32 {
return v.(Float32)
}
type Float64 float64
func (self Float64) Equals(other Value) bool {
if other, ok := other.(Float64); ok {
return self == other
} else {
return false
}
}
func (v Float64) Ref() ref.Ref {
return getRef(v)
}
func (v Float64) Chunks() []Future {
return nil
}
func (v Float64) Release() {
}
func Float64FromVal(v Value) Float64 {
return v.(Float64)
}