mirror of
https://github.com/dolthub/dolt.git
synced 2026-01-29 03:08:47 -06:00
21 lines
389 B
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
|
|
}
|