manta/refarray

Source   Edit  

Types

RefArray[T] = object
array with constant runtime length and reference semantics Source   Edit  

Procs

proc `$`[T](x: RefArray[T]): string
Source   Edit  
proc `==`[T](a, b: RefArray[T]): bool
Source   Edit  
proc `=trace`[T](arr: var RefArray[T]; env: pointer)
Source   Edit  
proc `=wasMoved`[T](arr: var RefArray[T]) {.inline, nodestroy.}
Source   Edit  
proc `[]`[T](x: RefArray[T]; i: int): lent T {.inline.}
Source   Edit  
proc `[]`[T](x: RefArray[T]; i: UncheckedIndex): lent T {.inline.}
Source   Edit  
proc `[]`[T](x: var RefArray[T]; i: int): var T {.inline.}
Source   Edit  
proc `[]`[T](x: var RefArray[T]; i: UncheckedIndex): var T {.inline.}
Source   Edit  
proc `[]=`[T](x: RefArray[T]; i: int; val: sink T) {.inline.}
Source   Edit  
proc `[]=`[T](x: RefArray[T]; i: UncheckedIndex; val: sink T) {.inline.}
Source   Edit  
proc hash[T](a: RefArray[T]): Hash
Source   Edit  
proc len[T](x: RefArray[T]): int {.inline.}
Source   Edit  
proc newArray[T](length: int): RefArray[T]
Source   Edit  
proc newArrayUninit[T](length: int): RefArray[T] {.inline.}
Source   Edit  
proc toRefArray[T](arr: openArray[T]): RefArray[T]
Source   Edit  

Iterators

iterator items[T](x: RefArray[T]): T
Source   Edit  
iterator mitems[T](x: RefArray[T]): var T
Source   Edit  
iterator mpairs[T](x: RefArray[T]): (int, var T)
Source   Edit  
iterator pairs[T](x: RefArray[T]): (int, T)
Source   Edit  

Templates

template toOpenArray[T](x: RefArray[T]; first, last: int): auto
Source   Edit