Skip to content

Commit

Permalink
deploy: c27fb3c
Browse files Browse the repository at this point in the history
  • Loading branch information
beef331 committed Feb 5, 2024
1 parent 7d472fe commit cd1df70
Show file tree
Hide file tree
Showing 6 changed files with 68 additions and 68 deletions.
14 changes: 7 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ <h1 class="title">traitor</h1>
else:
vtable*: ptr typeof(emitTupleType(Traits))">Traitor</a></li>
<li><a class="reference" href="#TypedTraitor" title="TypedTraitor[T; Traits] {.final.} = ref object of Traitor[Traits]
<li><a class="reference" href="#TypedTraitor" title="TypedTraitor[T; Traits] {.final, acyclic.} = ref object of Traitor[Traits]
data*: T">TypedTraitor</a></li>
<li><a class="reference" href="#ValidTraitor" title="ValidTraitor = concept f
for field in f.distinctBase().fields:
Expand Down Expand Up @@ -189,7 +189,7 @@ <h1><a class="toc-backref" href="#7">Types</a></h1>
</dd>
</div>
<div id="TypedTraitor">
<dt><pre><a href="traitor.html#TypedTraitor"><span class="Identifier">TypedTraitor</span></a><span class="Other">[</span><span class="Identifier">T</span><span class="Other">;</span> <span class="Identifier">Traits</span><span class="Other">]</span> {.<span class="Identifier">final</span>.} <span class="Other">=</span> <span class="Keyword">ref</span> <span class="Keyword">object</span> <span class="Keyword">of</span> <a href="traitor.html#Traitor"><span class="Identifier">Traitor</span></a><span class="Other">[</span><span class="Identifier">Traits</span><span class="Other">]</span>
<dt><pre><a href="traitor.html#TypedTraitor"><span class="Identifier">TypedTraitor</span></a><span class="Other">[</span><span class="Identifier">T</span><span class="Other">;</span> <span class="Identifier">Traits</span><span class="Other">]</span> {.<span class="Identifier">final</span><span class="Other">,</span> <span class="Identifier">acyclic</span>.} <span class="Other">=</span> <span class="Keyword">ref</span> <span class="Keyword">object</span> <span class="Keyword">of</span> <a href="traitor.html#Traitor"><span class="Identifier">Traitor</span></a><span class="Other">[</span><span class="Identifier">Traits</span><span class="Other">]</span>
<span class="Identifier">data</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">T</span>
</pre></dt>
<dd>
Expand Down Expand Up @@ -278,8 +278,8 @@ <h1><a class="toc-backref" href="#18">Templates</a></h1>
<dd>

Emits a converter from <tt class="docutils literal"><span class="pre"><span class="Identifier">T</span></span></tt> to <tt class="docutils literal"><span class="pre"><span class="Identifier">Traitor</span><span class="Punctuation">[</span><span class="Identifier">trait</span><span class="Punctuation">]</span></span></tt> This allows skipping of <tt class="docutils literal"><span class="pre"><span class="Identifier">val</span><span class="Operator">.</span><span class="Identifier">toTrait</span><span class="Punctuation">(</span><span class="Identifier">trait</span><span class="Punctuation">)</span></span></tt>
<a href="https://github.com/beef331/traitor/tree/master/traitor.nim#L239" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
<a href="https://github.com/beef331/traitor/edit/devel/traitor.nim#L239" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
<a href="https://github.com/beef331/traitor/tree/master/traitor.nim#L281" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
<a href="https://github.com/beef331/traitor/edit/devel/traitor.nim#L281" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;

</dd>
</div>
Expand All @@ -294,8 +294,8 @@ <h1><a class="toc-backref" href="#18">Templates</a></h1>
<p><strong class="examples_text">Example:</strong></p>
<pre class="listing"><span class="Keyword">type</span> <span class="Identifier">MyTrait</span> <span class="Operator">=</span> <span class="Keyword">distinct</span> <span class="Keyword">tuple</span><span class="Punctuation">[</span><span class="Identifier">bleh</span><span class="Punctuation">:</span> <span class="Keyword">proc</span><span class="Punctuation">(</span><span class="Identifier">_</span><span class="Punctuation">:</span> <span class="Identifier">Atom</span><span class="Punctuation">,</span> <span class="Identifier">_</span><span class="Punctuation">:</span> <span class="Identifier">int</span><span class="Punctuation">)</span> <span class="Punctuation">{</span><span class="Operator">.</span><span class="Identifier">nimcall</span><span class="Operator">.</span><span class="Punctuation">}</span><span class="Punctuation">]</span>
<span class="Identifier">implTrait</span> <span class="Identifier">MyTrait</span></pre>
<a href="https://github.com/beef331/traitor/tree/master/traitor.nim#L215" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
<a href="https://github.com/beef331/traitor/edit/devel/traitor.nim#L215" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
<a href="https://github.com/beef331/traitor/tree/master/traitor.nim#L243" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
<a href="https://github.com/beef331/traitor/edit/devel/traitor.nim#L243" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;

</dd>
</div>
Expand All @@ -311,7 +311,7 @@ <h1><a class="toc-backref" href="#18">Templates</a></h1>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-02-03 22:23:56 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-02-05 03:46:12 UTC</small>
</div>
</div>
</div>
Expand Down
32 changes: 16 additions & 16 deletions theindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ <h1 class="title">Index</h1>
<li><a class="reference external"
data-doc-search-tag="streams: proc atEnd(ss: StringStream): bool" href="traitor/streams.html#atEnd%2CStringStream">streams: proc atEnd(ss: StringStream): bool</a></li>
<li><a class="reference external"
data-doc-search-tag="streams: proc atEnd(param0_1543507210: Traitor[StreamTrait]): bool" href="traitor/streams.html#atEnd%2CTraitor%5BStreamTrait%5D">streams: proc atEnd(param0_1543507210: Traitor[StreamTrait]): bool</a></li>
data-doc-search-tag="streams: proc atEnd(param0_1543507223: Traitor[StreamTrait]): bool" href="traitor/streams.html#atEnd%2CTraitor%5BStreamTrait%5D">streams: proc atEnd(param0_1543507223: Traitor[StreamTrait]): bool</a></li>
</ul></dd>
<dt><a name="Atom" href="#Atom"><span>Atom:</span></a></dt><dd><ul class="simple">
<li><a class="reference external"
Expand Down Expand Up @@ -60,15 +60,15 @@ <h1 class="title">Index</h1>
<li><a class="reference external"
data-doc-search-tag="streams: proc getPos(ss: var StringStream): int" href="traitor/streams.html#getPos%2CStringStream">streams: proc getPos(ss: var StringStream): int</a></li>
<li><a class="reference external"
data-doc-search-tag="streams: proc getPos(param0_1543507209: Traitor[StreamTrait]): int" href="traitor/streams.html#getPos%2CTraitor%5BStreamTrait%5D">streams: proc getPos(param0_1543507209: Traitor[StreamTrait]): int</a></li>
data-doc-search-tag="streams: proc getPos(param0_1543507222: Traitor[StreamTrait]): int" href="traitor/streams.html#getPos%2CTraitor%5BStreamTrait%5D">streams: proc getPos(param0_1543507222: Traitor[StreamTrait]): int</a></li>
</ul></dd>
<dt><a name="implTrait" href="#implTrait"><span>implTrait:</span></a></dt><dd><ul class="simple">
<li><a class="reference external"
data-doc-search-tag="traitor: template implTrait(trait: typedesc[ValidTraitor])" href="traitor.html#implTrait.t%2Ctypedesc%5BValidTraitor%5D">traitor: template implTrait(trait: typedesc[ValidTraitor])</a></li>
</ul></dd>
<dt><a name="init" href="#init"><span>init:</span></a></dt><dd><ul class="simple">
<li><a class="reference external"
data-doc-search-tag="streams: proc init(__1543507292: typedesc[FileStream]; path: string; mode: FileMode = fmRead): FileStream" href="traitor/streams.html#init%2Ctypedesc%5BFileStream%5D%2Cstring%2CFileMode">streams: proc init(__1543507292: typedesc[FileStream]; path: string; mode: FileMode = fmRead): FileStream</a></li>
data-doc-search-tag="streams: proc init(__1543507305: typedesc[FileStream]; path: string; mode: FileMode = fmRead): FileStream" href="traitor/streams.html#init%2Ctypedesc%5BFileStream%5D%2Cstring%2CFileMode">streams: proc init(__1543507305: typedesc[FileStream]; path: string; mode: FileMode = fmRead): FileStream</a></li>
</ul></dd>
<dt><a name="onlyPrimitives" href="#onlyPrimitives"><span>onlyPrimitives:</span></a></dt><dd><ul class="simple">
<li><a class="reference external"
Expand Down Expand Up @@ -100,10 +100,10 @@ <h1 class="title">Index</h1>
<li><a class="reference external"
data-doc-search-tag="streams: proc readData(ss: var StringStream; dest: pointer; amount: int): int" href="traitor/streams.html#readData%2CStringStream%2Cpointer%2Cint">streams: proc readData(ss: var StringStream; dest: pointer; amount: int): int</a></li>
<li><a class="reference external"
data-doc-search-tag="streams: proc readData(param0_1543507201: Traitor[StreamTrait]; param1_1543507202:
pointer; param2_1543507203:
int): int" href="traitor/streams.html#readData%2CTraitor%5BStreamTrait%5D%2C%2C">streams: proc readData(param0_1543507201: Traitor[StreamTrait]; param1_1543507202:
pointer; param2_1543507203:
data-doc-search-tag="streams: proc readData(param0_1543507214: Traitor[StreamTrait]; param1_1543507215:
pointer; param2_1543507216:
int): int" href="traitor/streams.html#readData%2CTraitor%5BStreamTrait%5D%2C%2C">streams: proc readData(param0_1543507214: Traitor[StreamTrait]; param1_1543507215:
pointer; param2_1543507216:
int): int</a></li>
</ul></dd>
<dt><a name="setPos" href="#setPos"><span>setPos:</span></a></dt><dd><ul class="simple">
Expand All @@ -112,8 +112,8 @@ <h1 class="title">Index</h1>
<li><a class="reference external"
data-doc-search-tag="streams: proc setPos(ss: var StringStream; pos: int)" href="traitor/streams.html#setPos%2CStringStream%2Cint">streams: proc setPos(ss: var StringStream; pos: int)</a></li>
<li><a class="reference external"
data-doc-search-tag="streams: proc setPos(param0_1543507207: Traitor[StreamTrait]; param1_1543507208:
int)" href="traitor/streams.html#setPos%2CTraitor%5BStreamTrait%5D%2C">streams: proc setPos(param0_1543507207: Traitor[StreamTrait]; param1_1543507208:
data-doc-search-tag="streams: proc setPos(param0_1543507220: Traitor[StreamTrait]; param1_1543507221:
int)" href="traitor/streams.html#setPos%2CTraitor%5BStreamTrait%5D%2C">streams: proc setPos(param0_1543507220: Traitor[StreamTrait]; param1_1543507221:
int)</a></li>
</ul></dd>
<dt><a name="StaticTraitor" href="#StaticTraitor"><span>StaticTraitor:</span></a></dt><dd><ul class="simple">
Expand All @@ -134,8 +134,8 @@ <h1 class="title">Index</h1>
</ul></dd>
<dt><a name="toTrait" href="#toTrait"><span>toTrait:</span></a></dt><dd><ul class="simple">
<li><a class="reference external"
data-doc-search-tag="streams: proc toTrait[T](val`gensym46: sink T; __1543506917: typedesc[StreamTrait]): Traitor[
StreamTrait]" href="traitor/streams.html#toTrait%2CsinkT%2C">streams: proc toTrait[T](val`gensym46: sink T; __1543506917: typedesc[StreamTrait]): Traitor[
data-doc-search-tag="streams: proc toTrait[T](val`gensym46: sink T; __1543506929: typedesc[StreamTrait]): Traitor[
StreamTrait]" href="traitor/streams.html#toTrait%2CsinkT%2C">streams: proc toTrait[T](val`gensym46: sink T; __1543506929: typedesc[StreamTrait]): Traitor[
StreamTrait]</a></li>
</ul></dd>
<dt><a name="Traitor" href="#Traitor"><span>Traitor:</span></a></dt><dd><ul class="simple">
Expand All @@ -162,17 +162,17 @@ <h1 class="title">Index</h1>
<li><a class="reference external"
data-doc-search-tag="streams: proc writeData(ss: var StringStream; dest: pointer; amount: int): int" href="traitor/streams.html#writeData%2CStringStream%2Cpointer%2Cint">streams: proc writeData(ss: var StringStream; dest: pointer; amount: int): int</a></li>
<li><a class="reference external"
data-doc-search-tag="streams: proc writeData(param0_1543507204: Traitor[StreamTrait]; param1_1543507205:
pointer; param2_1543507206:
int): int" href="traitor/streams.html#writeData%2CTraitor%5BStreamTrait%5D%2C%2C">streams: proc writeData(param0_1543507204: Traitor[StreamTrait]; param1_1543507205:
pointer; param2_1543507206:
data-doc-search-tag="streams: proc writeData(param0_1543507217: Traitor[StreamTrait]; param1_1543507218:
pointer; param2_1543507219:
int): int" href="traitor/streams.html#writeData%2CTraitor%5BStreamTrait%5D%2C%2C">streams: proc writeData(param0_1543507217: Traitor[StreamTrait]; param1_1543507218:
pointer; param2_1543507219:
int): int</a></li>
</ul></dd>
</dl>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-02-03 22:23:56 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-02-05 03:46:12 UTC</small>
</div>
</div>
</div>
Expand Down
14 changes: 7 additions & 7 deletions traitor.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ <h1 class="title">traitor</h1>
else:
vtable*: ptr typeof(emitTupleType(Traits))">Traitor</a></li>
<li><a class="reference" href="#TypedTraitor" title="TypedTraitor[T; Traits] {.final.} = ref object of Traitor[Traits]
<li><a class="reference" href="#TypedTraitor" title="TypedTraitor[T; Traits] {.final, acyclic.} = ref object of Traitor[Traits]
data*: T">TypedTraitor</a></li>
<li><a class="reference" href="#ValidTraitor" title="ValidTraitor = concept f
for field in f.distinctBase().fields:
Expand Down Expand Up @@ -189,7 +189,7 @@ <h1><a class="toc-backref" href="#7">Types</a></h1>
</dd>
</div>
<div id="TypedTraitor">
<dt><pre><a href="traitor.html#TypedTraitor"><span class="Identifier">TypedTraitor</span></a><span class="Other">[</span><span class="Identifier">T</span><span class="Other">;</span> <span class="Identifier">Traits</span><span class="Other">]</span> {.<span class="Identifier">final</span>.} <span class="Other">=</span> <span class="Keyword">ref</span> <span class="Keyword">object</span> <span class="Keyword">of</span> <a href="traitor.html#Traitor"><span class="Identifier">Traitor</span></a><span class="Other">[</span><span class="Identifier">Traits</span><span class="Other">]</span>
<dt><pre><a href="traitor.html#TypedTraitor"><span class="Identifier">TypedTraitor</span></a><span class="Other">[</span><span class="Identifier">T</span><span class="Other">;</span> <span class="Identifier">Traits</span><span class="Other">]</span> {.<span class="Identifier">final</span><span class="Other">,</span> <span class="Identifier">acyclic</span>.} <span class="Other">=</span> <span class="Keyword">ref</span> <span class="Keyword">object</span> <span class="Keyword">of</span> <a href="traitor.html#Traitor"><span class="Identifier">Traitor</span></a><span class="Other">[</span><span class="Identifier">Traits</span><span class="Other">]</span>
<span class="Identifier">data</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">T</span>
</pre></dt>
<dd>
Expand Down Expand Up @@ -278,8 +278,8 @@ <h1><a class="toc-backref" href="#18">Templates</a></h1>
<dd>

Emits a converter from <tt class="docutils literal"><span class="pre"><span class="Identifier">T</span></span></tt> to <tt class="docutils literal"><span class="pre"><span class="Identifier">Traitor</span><span class="Punctuation">[</span><span class="Identifier">trait</span><span class="Punctuation">]</span></span></tt> This allows skipping of <tt class="docutils literal"><span class="pre"><span class="Identifier">val</span><span class="Operator">.</span><span class="Identifier">toTrait</span><span class="Punctuation">(</span><span class="Identifier">trait</span><span class="Punctuation">)</span></span></tt>
<a href="https://github.com/beef331/traitor/tree/master/traitor.nim#L239" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
<a href="https://github.com/beef331/traitor/edit/devel/traitor.nim#L239" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
<a href="https://github.com/beef331/traitor/tree/master/traitor.nim#L281" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
<a href="https://github.com/beef331/traitor/edit/devel/traitor.nim#L281" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;

</dd>
</div>
Expand All @@ -294,8 +294,8 @@ <h1><a class="toc-backref" href="#18">Templates</a></h1>
<p><strong class="examples_text">Example:</strong></p>
<pre class="listing"><span class="Keyword">type</span> <span class="Identifier">MyTrait</span> <span class="Operator">=</span> <span class="Keyword">distinct</span> <span class="Keyword">tuple</span><span class="Punctuation">[</span><span class="Identifier">bleh</span><span class="Punctuation">:</span> <span class="Keyword">proc</span><span class="Punctuation">(</span><span class="Identifier">_</span><span class="Punctuation">:</span> <span class="Identifier">Atom</span><span class="Punctuation">,</span> <span class="Identifier">_</span><span class="Punctuation">:</span> <span class="Identifier">int</span><span class="Punctuation">)</span> <span class="Punctuation">{</span><span class="Operator">.</span><span class="Identifier">nimcall</span><span class="Operator">.</span><span class="Punctuation">}</span><span class="Punctuation">]</span>
<span class="Identifier">implTrait</span> <span class="Identifier">MyTrait</span></pre>
<a href="https://github.com/beef331/traitor/tree/master/traitor.nim#L215" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
<a href="https://github.com/beef331/traitor/edit/devel/traitor.nim#L215" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
<a href="https://github.com/beef331/traitor/tree/master/traitor.nim#L243" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
<a href="https://github.com/beef331/traitor/edit/devel/traitor.nim#L243" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;

</dd>
</div>
Expand All @@ -311,7 +311,7 @@ <h1><a class="toc-backref" href="#18">Templates</a></h1>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-02-03 22:23:56 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-02-05 03:46:12 UTC</small>
</div>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions traitor.idx
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ nim TypedTraitor traitor.html#TypedTraitor type TypedTraitor 74
nim StaticTraitor traitor.html#StaticTraitor type StaticTraitor 78
nim AnyTraitor traitor.html#AnyTraitor type AnyTraitor 81
nim getData traitor.html#getData,Traitor[Traits],typedesc[T] proc getData[T; Traits](tratr: Traitor[Traits]; __520093759: typedesc[T]): var T 85
nim implTrait traitor.html#implTrait.t,typedesc[ValidTraitor] template implTrait(trait: typedesc[ValidTraitor]) 215
nim emitConverter traitor.html#emitConverter.t,typedesc,typedesc[ValidTraitor] template emitConverter(T: typedesc; trait: typedesc[ValidTraitor]) 239
nim implTrait traitor.html#implTrait.t,typedesc[ValidTraitor] template implTrait(trait: typedesc[ValidTraitor]) 243
nim emitConverter traitor.html#emitConverter.t,typedesc,typedesc[ValidTraitor] template emitConverter(T: typedesc; trait: typedesc[ValidTraitor]) 281
Loading

0 comments on commit cd1df70

Please sign in to comment.