Documentation ¶
Index ¶
- func NewSortable(list *List) sort.Interface
- type List
- func (l *List) Append(item types.Hashable) error
- func (l *List) Clear()
- func (l *List) Equals(b types.Equatable) bool
- func (l *List) Extend(it types.KIterator) (err error)
- func (l *List) Get(i int) (item types.Hashable, err error)
- func (l *List) Has(item types.Hashable) (has bool)
- func (l *List) Hash() int
- func (l *List) Insert(i int, item types.Hashable) error
- func (l *List) Items() (it types.KIterator)
- func (l *List) Less(b types.Sortable) bool
- func (l *List) Pop() (item types.Hashable, err error)
- func (l *List) Remove(i int) error
- func (l *List) Set(i int, item types.Hashable) (err error)
- func (l *List) Size() int
- type MList
- type MSorted
- type Sortable
- type Sorted
- func (s *Sorted) Add(item types.Hashable) (err error)
- func (s *Sorted) Clear()
- func (s *Sorted) Delete(item types.Hashable) (err error)
- func (s *Sorted) Equals(b types.Equatable) bool
- func (s *Sorted) Extend(other types.KIterator) (err error)
- func (s *Sorted) Find(item types.Hashable) (int, bool, error)
- func (s *Sorted) Get(i int) (item types.Hashable, err error)
- func (s *Sorted) Has(item types.Hashable) (has bool)
- func (s *Sorted) Hash() int
- func (s *Sorted) Item(item types.Hashable) (types.Hashable, error)
- func (s *Sorted) Items() (it types.KIterator)
- func (s *Sorted) Less(b types.Sortable) bool
- func (s *Sorted) Size() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSortable ¶
Types ¶
type MList ¶
type MList struct { List MarshalItem types.ItemMarshal UnmarshalItem types.ItemUnmarshal }
func NewMList ¶
func NewMList(list *List, marshal types.ItemMarshal, unmarshal types.ItemUnmarshal) *MList
func (*MList) MarshalBinary ¶
func (*MList) UnmarshalBinary ¶
type MSorted ¶
func NewMSorted ¶
func NewMSorted(s *Sorted, marshal types.ItemMarshal, unmarshal types.ItemUnmarshal) *MSorted
func (*MSorted) MarshalBinary ¶
func (*MSorted) UnmarshalBinary ¶
Click to show internal directories.
Click to hide internal directories.