Index
Modules:
traitor
,
traitor/streams
.
API symbols
AnyTraitor:
traitor: type AnyTraitor
atEnd:
streams: proc atEnd(fs: var FileStream): bool
streams: proc atEnd(ss: StringStream): bool
streams: proc atEnd(param0: Traitor[StreamTrait]): bool
Atom:
traitor: type Atom
emitConverter:
traitor: template emitConverter(T: typedesc; trait: typedesc[ValidTraitor])
emitTupleType:
traitor: macro emitTupleType(trait: typedesc): untyped
FileStream:
streams: object FileStream
GenericType:
traitor: type GenericType
getData:
traitor: proc getData[T; Traits](tratr: Traitor[Traits]; _: typedesc[T]): var T
getPos:
streams: proc getPos(fs: var FileStream): int
streams: proc getPos(ss: var StringStream): int
streams: proc getPos(param0: Traitor[StreamTrait]): int
implTrait:
traitor: template implTrait(trait: typedesc[ValidTraitor])
init:
streams: proc init(_: typedesc[FileStream]; path: string; mode: FileMode = fmRead): FileStream
isGeneric:
traitor: proc isGeneric(t: typedesc): bool
joinTraits:
traitor: macro joinTraits(traits: varargs[typed]): untyped
onlyPrimitives:
streams: proc onlyPrimitives[Idx, T](val: typedesc[array[Idx, T]])
streams: proc onlyPrimitives(val: typedesc[PrimitiveAtom])
Primitive:
streams: type Primitive
PrimitiveAtom:
streams: type PrimitiveAtom
PrimitiveBase:
streams: type PrimitiveBase
read:
streams: proc read(strm: var Stream; maxAmount: int): string
streams: proc read(strm: var Stream; T: typedesc[Primitive]): T:type
readData:
streams: proc readData(fs: var FileStream; dest: pointer; amount: int): int
streams: proc readData(ss: var StringStream; dest: pointer; amount: int): int
streams: proc readData(param0: Traitor[StreamTrait]; param1: pointer; param2: int): int
setPos:
streams: proc setPos(fs: var FileStream; pos: int)
streams: proc setPos(ss: var StringStream; pos: int)
streams: proc setPos(param0: Traitor[StreamTrait]; param1: int)
setProc:
traitor: template setProc[T, Trait](traitor: TypedTraitor[T, Trait]; name: untyped; prc: proc)
StaticTraitor:
traitor: type StaticTraitor
Stream:
streams: type Stream
StreamTrait:
streams: type StreamTrait
StringStream:
streams: object StringStream
toTrait:
streams: proc toTrait[T; Constraint: StreamTrait](val`gensym0: sink T; traitTyp`gensym0: typedesc[Constraint]): auto
Traitor:
traitor: type Traitor
TraitType:
traitor: type TraitType
TypedTraitor:
traitor: type TypedTraitor
ValidTraitor:
traitor: type ValidTraitor
write:
streams: proc write(strm: var Stream; data: Primitive): int
streams: proc write(strm: var Stream; data: string): int
writeData:
streams: proc writeData(fs: var FileStream; data: pointer; amount: int): int
streams: proc writeData(ss: var StringStream; dest: pointer; amount: int): int
streams: proc writeData(param0: Traitor[StreamTrait]; param1: pointer; param2: int): int