| 1 | // Code generated by 'yaegi extract container/heap'. DO NOT EDIT. |
| 2 | |
| 3 | //go:build go1.22 |
| 4 | // +build go1.22 |
| 5 | |
| 6 | package stdlib |
| 7 | |
| 8 | import ( |
| 9 | "container/heap" |
| 10 | "reflect" |
| 11 | ) |
| 12 | |
| 13 | func init() { |
| 14 | Symbols["container/heap/heap"] = map[string]reflect.Value{ |
| 15 | // function, constant and variable definitions |
| 16 | "Fix": reflect.ValueOf(heap.Fix), |
| 17 | "Init": reflect.ValueOf(heap.Init), |
| 18 | "Pop": reflect.ValueOf(heap.Pop), |
| 19 | "Push": reflect.ValueOf(heap.Push), |
| 20 | "Remove": reflect.ValueOf(heap.Remove), |
| 21 | |
| 22 | // type definitions |
| 23 | "Interface": reflect.ValueOf((*heap.Interface)(nil)), |
| 24 | |
| 25 | // interface wrapper definitions |
| 26 | "_Interface": reflect.ValueOf((*_container_heap_Interface)(nil)), |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | // _container_heap_Interface is an interface wrapper for Interface type |
| 31 | type _container_heap_Interface struct { |
| 32 | IValue interface{} |
| 33 | WLen func() int |
| 34 | WLess func(i int, j int) bool |
| 35 | WPop func() any |
| 36 | WPush func(x any) |
| 37 | WSwap func(i int, j int) |
| 38 | } |
| 39 | |
| 40 | func (W _container_heap_Interface) Len() int { return W.WLen() } |
| 41 | func (W _container_heap_Interface) Less(i int, j int) bool { return W.WLess(i, j) } |
| 42 | func (W _container_heap_Interface) Pop() any { return W.WPop() } |
| 43 | func (W _container_heap_Interface) Push(x any) { W.WPush(x) } |
| 44 | func (W _container_heap_Interface) Swap(i int, j int) { W.WSwap(i, j) } |