Skip to content

Commit

Permalink
deploy: ad129f0
Browse files Browse the repository at this point in the history
beef331 committed Feb 6, 2024
1 parent 9785e5f commit c0be21d
Showing 4 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
@@ -59,7 +59,7 @@ <h1 class="title">traitor</h1>
<li><a class="reference" href="#StaticTraitor" title="StaticTraitor[Traits] = concept st
st.toTrait(Traits) is Traitor[Traits]">StaticTraitor</a></li>
<li><a class="reference" href="#Traitor" title="Traitor[Traits] = ref object of RootObj
when defined(traitor.fattraitors):
when defined(traitorFatPointers):
vtable*: typeof(emitTupleType(Traits))
else:
@@ -130,7 +130,7 @@ <h1 class="title">traitor</h1>

<div id="tocRoot"></div>

<p class="module-desc">This module implements a simple interface over dynamic dispatched traits. It allows one to define the required implementation for a type to match both at runtime and compile time. Enabling the writing of code that does not require inheritance, but still has dynamic dispatch.Defining <tt class="docutils literal"><span class="pre"><span class="Operator">-</span><span class="Identifier">d</span><span class="Punctuation">:</span><span class="Identifier">traitor</span><span class="Operator">.</span><span class="Identifier">fattraitors</span></span></tt> allows one to change where the vtable is stored. By default there is a vtable generated per trait. This flag moves the the vtable to the <tt class="docutils literal"><span class="pre"><span class="Identifier">Traitor</span></span></tt> object which increases memory usage, but in limited testing can improve dispatch time through cache optimising.Defining <tt class="docutils literal"><span class="pre"><span class="Operator">-</span><span class="Identifier">d</span><span class="Punctuation">:</span><span class="Identifier">traitor</span><span class="Operator">.</span><span class="Identifier">nicenames</span></span></tt> can be used to make the generate procedures have nicer names for debugging.</p>
<p class="module-desc">This module implements a simple interface over dynamic dispatched traits. It allows one to define the required implementation for a type to match both at runtime and compile time. Enabling the writing of code that does not require inheritance, but still has dynamic dispatch.Defining <tt class="docutils literal"><span class="pre"><span class="Operator">-</span><span class="Identifier">d</span><span class="Punctuation">:</span><span class="Identifier">traitorFatPointers</span></span></tt> allows one to change where the vtable is stored. By default there is a vtable generated per trait. This flag moves the the vtable to the <tt class="docutils literal"><span class="pre"><span class="Identifier">Traitor</span></span></tt> object which increases memory usage, but in limited testing can improve dispatch time through cache optimising.Defining <tt class="docutils literal"><span class="pre"><span class="Operator">-</span><span class="Identifier">d</span><span class="Punctuation">:</span><span class="Identifier">traitorNiceNames</span></span></tt> can be used to make the generate procedures have nicer names for debugging.</p>
<div class="section" id="6">
<h1><a class="toc-backref" href="#6">Imports</a></h1>
<dl class="item">
@@ -173,7 +173,7 @@ <h1><a class="toc-backref" href="#7">Types</a></h1>
</div>
<div id="Traitor">
<dt><pre><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="Other">=</span> <span class="Keyword">ref</span> <span class="Keyword">object</span> <span class="Keyword">of</span> <span class="Identifier">RootObj</span>
<span class="Keyword">when</span> <span class="Identifier">defined</span><span class="Other">(</span><span class="Identifier">traitor</span><span class="Other">.</span><span class="Identifier">fattraitors</span><span class="Other">)</span><span class="Other">:</span>
<span class="Keyword">when</span> <span class="Identifier">defined</span><span class="Other">(</span><span class="Identifier">traitorFatPointers</span><span class="Other">)</span><span class="Other">:</span>
<span class="Identifier">vtable</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">typeof</span><span class="Other">(</span><span class="Identifier">emitTupleType</span><span class="Other">(</span><span class="Identifier">Traits</span><span class="Other">)</span><span class="Other">)</span>

<span class="Keyword">else</span><span class="Other">:</span>
@@ -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-06 22:59:31 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-02-06 23:03:02 UTC</small>
</div>
</div>
</div>
2 changes: 1 addition & 1 deletion theindex.html
Original file line number Diff line number Diff line change
@@ -172,7 +172,7 @@ <h1 class="title">Index</h1>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-02-06 22:59:31 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-02-06 23:03:02 UTC</small>
</div>
</div>
</div>
8 changes: 4 additions & 4 deletions traitor.html
Original file line number Diff line number Diff line change
@@ -59,7 +59,7 @@ <h1 class="title">traitor</h1>
<li><a class="reference" href="#StaticTraitor" title="StaticTraitor[Traits] = concept st
st.toTrait(Traits) is Traitor[Traits]">StaticTraitor</a></li>
<li><a class="reference" href="#Traitor" title="Traitor[Traits] = ref object of RootObj
when defined(traitor.fattraitors):
when defined(traitorFatPointers):
vtable*: typeof(emitTupleType(Traits))
else:
@@ -130,7 +130,7 @@ <h1 class="title">traitor</h1>

<div id="tocRoot"></div>

<p class="module-desc">This module implements a simple interface over dynamic dispatched traits. It allows one to define the required implementation for a type to match both at runtime and compile time. Enabling the writing of code that does not require inheritance, but still has dynamic dispatch.Defining <tt class="docutils literal"><span class="pre"><span class="Operator">-</span><span class="Identifier">d</span><span class="Punctuation">:</span><span class="Identifier">traitor</span><span class="Operator">.</span><span class="Identifier">fattraitors</span></span></tt> allows one to change where the vtable is stored. By default there is a vtable generated per trait. This flag moves the the vtable to the <tt class="docutils literal"><span class="pre"><span class="Identifier">Traitor</span></span></tt> object which increases memory usage, but in limited testing can improve dispatch time through cache optimising.Defining <tt class="docutils literal"><span class="pre"><span class="Operator">-</span><span class="Identifier">d</span><span class="Punctuation">:</span><span class="Identifier">traitor</span><span class="Operator">.</span><span class="Identifier">nicenames</span></span></tt> can be used to make the generate procedures have nicer names for debugging.</p>
<p class="module-desc">This module implements a simple interface over dynamic dispatched traits. It allows one to define the required implementation for a type to match both at runtime and compile time. Enabling the writing of code that does not require inheritance, but still has dynamic dispatch.Defining <tt class="docutils literal"><span class="pre"><span class="Operator">-</span><span class="Identifier">d</span><span class="Punctuation">:</span><span class="Identifier">traitorFatPointers</span></span></tt> allows one to change where the vtable is stored. By default there is a vtable generated per trait. This flag moves the the vtable to the <tt class="docutils literal"><span class="pre"><span class="Identifier">Traitor</span></span></tt> object which increases memory usage, but in limited testing can improve dispatch time through cache optimising.Defining <tt class="docutils literal"><span class="pre"><span class="Operator">-</span><span class="Identifier">d</span><span class="Punctuation">:</span><span class="Identifier">traitorNiceNames</span></span></tt> can be used to make the generate procedures have nicer names for debugging.</p>
<div class="section" id="6">
<h1><a class="toc-backref" href="#6">Imports</a></h1>
<dl class="item">
@@ -173,7 +173,7 @@ <h1><a class="toc-backref" href="#7">Types</a></h1>
</div>
<div id="Traitor">
<dt><pre><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="Other">=</span> <span class="Keyword">ref</span> <span class="Keyword">object</span> <span class="Keyword">of</span> <span class="Identifier">RootObj</span>
<span class="Keyword">when</span> <span class="Identifier">defined</span><span class="Other">(</span><span class="Identifier">traitor</span><span class="Other">.</span><span class="Identifier">fattraitors</span><span class="Other">)</span><span class="Other">:</span>
<span class="Keyword">when</span> <span class="Identifier">defined</span><span class="Other">(</span><span class="Identifier">traitorFatPointers</span><span class="Other">)</span><span class="Other">:</span>
<span class="Identifier">vtable</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">typeof</span><span class="Other">(</span><span class="Identifier">emitTupleType</span><span class="Other">(</span><span class="Identifier">Traits</span><span class="Other">)</span><span class="Other">)</span>

<span class="Keyword">else</span><span class="Other">:</span>
@@ -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-06 22:59:31 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-02-06 23:03:02 UTC</small>
</div>
</div>
</div>
2 changes: 1 addition & 1 deletion traitor/streams.html
Original file line number Diff line number Diff line change
@@ -578,7 +578,7 @@ <h1><a class="toc-backref" href="#12">Procs</a></h1>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-02-06 22:59:30 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-02-06 23:03:01 UTC</small>
</div>
</div>
</div>

0 comments on commit c0be21d

Please sign in to comment.