Files
dolt/types/value.go

21 lines
389 B
Go

package types
import (
"github.com/attic-labs/noms/ref"
)
// Value is implemented by every noms value
type Value interface {
Equals(other Value) bool
Ref() ref.Ref
// Returns the immediate children of this value in the DAG, if any, not including Type().
ChildValues() []Value
Chunks() []ref.Ref
Type() Type
}
type OrderedValue interface {
Value
Less(other OrderedValue) bool
}