Documentation ¶
Index ¶
- Variables
- type Rank
- func (r *Rank) Equal(ctx *core.Context, other core.Value, alreadyCompared map[uintptr]uintptr, ...) bool
- func (r *Rank) GetGoMethod(name string) (*core.GoFunction, bool)
- func (r *Rank) IsMutable() bool
- func (r *Rank) PrettyPrint(w *bufio.Writer, config *core.PrettyPrintConfig, depth int, ...)
- func (r *Rank) Prop(ctx *core.Context, name string) core.Value
- func (*Rank) PropertyNames(ctx *core.Context) []string
- func (*Rank) SetProp(ctx *core.Context, name string, value core.Value) error
- func (r *Rank) ToSymbolicValue(ctx *core.Context, encountered map[uintptr]symbolic.Value) (symbolic.Value, error)
- type RankItem
- type Ranking
- func (r *Ranking) Add(ctx *core.Context, value core.Serializable, score core.Float)
- func (r *Ranking) Equal(ctx *core.Context, other core.Value, alreadyCompared map[uintptr]uintptr, ...) bool
- func (f *Ranking) GetGoMethod(name string) (*core.GoFunction, bool)
- func (r *Ranking) IsMutable() bool
- func (r *Ranking) Iterator(ctx *core.Context, config core.IteratorConfiguration) core.Iterator
- func (r *Ranking) PrettyPrint(w *bufio.Writer, config *core.PrettyPrintConfig, depth int, ...)
- func (r *Ranking) Prop(ctx *core.Context, name string) core.Value
- func (*Ranking) PropertyNames(ctx *core.Context) []string
- func (r *Ranking) Remove(ctx *core.Context, removedVal core.Serializable)
- func (*Ranking) SetProp(ctx *core.Context, name string, value core.Value) error
- func (r *Ranking) ToSymbolicValue(ctx *core.Context, encountered map[uintptr]symbolic.Value) (symbolic.Value, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrRankingEntryListShouldHaveEvenLength = errors.New(`flat rank entry list should have an even length: [<value>, <float>, <value>, <float>]`) ErrRankingEntryListShouldHaveFloatScoresAtOddIndexes = errors.New(`flat rank entry list should have scores at odd indexes : [<value>, <float>, <value>, <float>]`) ErrRankingCanOnlyContainValuesWithFastId = errors.New("a Ranking can only contain values having a fast id") ErrRankingCanOnlyRankValuesWithAPositiveScore = errors.New("a Ranking can only rank values with a positive score") ErrRankingCannotContainDuplicates = errors.New("a Ranking cannot contain duplicates") )
Functions ¶
This section is empty.
Types ¶
type Rank ¶
type Rank struct {
// contains filtered or unexported fields
}
func (*Rank) GetGoMethod ¶
func (r *Rank) GetGoMethod(name string) (*core.GoFunction, bool)
func (*Rank) PrettyPrint ¶
type Ranking ¶
type Ranking struct {
// contains filtered or unexported fields
}
func (*Ranking) GetGoMethod ¶
func (f *Ranking) GetGoMethod(name string) (*core.GoFunction, bool)
func (*Ranking) PrettyPrint ¶
Click to show internal directories.
Click to hide internal directories.