Skip to content

Commit

Permalink
Updated playground for new version
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-mcdaniel committed Sep 16, 2024
1 parent 48f27fa commit ecfaa83
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 12 deletions.
4 changes: 2 additions & 2 deletions docs/sage/lir/enum.ConstExpr.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@
</div></details><details class="toggle method-toggle" open><summary><section id="method.as_float" class="method"><a class="src rightside" href="../../src/sage/lir/expr/const_expr.rs.html#536-545">source</a><h4 class="code-header">pub fn <a href="#method.as_float" class="fn">as_float</a>(self, env: &amp;<a class="struct" href="struct.Env.html" title="struct sage::lir::Env">Env</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.f64.html">f64</a>, <a class="enum" href="enum.Error.html" title="enum sage::lir::Error">Error</a>&gt;</h4></section></summary><div class="docblock"><p>Try to get this constant expression as a float.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.as_bool" class="method"><a class="src rightside" href="../../src/sage/lir/expr/const_expr.rs.html#548-557">source</a><h4 class="code-header">pub fn <a href="#method.as_bool" class="fn">as_bool</a>(self, env: &amp;<a class="struct" href="struct.Env.html" title="struct sage::lir::Env">Env</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a>, <a class="enum" href="enum.Error.html" title="enum sage::lir::Error">Error</a>&gt;</h4></section></summary><div class="docblock"><p>Try to get this constant expression as a boolean value.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.as_symbol" class="method"><a class="src rightside" href="../../src/sage/lir/expr/const_expr.rs.html#560-574">source</a><h4 class="code-header">pub fn <a href="#method.as_symbol" class="fn">as_symbol</a>(self, env: &amp;<a class="struct" href="struct.Env.html" title="struct sage::lir::Env">Env</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.76.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="enum" href="enum.Error.html" title="enum sage::lir::Error">Error</a>&gt;</h4></section></summary><div class="docblock"><p>Try to get this constant expression as a symbol (like in LISP).</p>
</div></details></div></details></div><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Clone-for-ConstExpr" class="impl"><a class="src rightside" href="../../src/sage/lir/expr/const_expr.rs.html#24">source</a><a href="#impl-Clone-for-ConstExpr" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="enum" href="enum.ConstExpr.html" title="enum sage::lir::ConstExpr">ConstExpr</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl"><a class="src rightside" href="../../src/sage/lir/expr/const_expr.rs.html#24">source</a><a href="#method.clone" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.76.0/core/clone/trait.Clone.html#tymethod.clone" class="fn">clone</a>(&amp;self) -&gt; <a class="enum" href="enum.ConstExpr.html" title="enum sage::lir::ConstExpr">ConstExpr</a></h4></section></summary><div class='docblock'>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.76.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.76.0/src/core/clone.rs.html#169">source</a></span><a href="#method.clone_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.76.0/core/clone/trait.Clone.html#method.clone_from" class="fn">clone_from</a>(&amp;mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&amp;Self</a>)</h4></section></summary><div class='docblock'>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.76.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Compile-for-ConstExpr" class="impl"><a class="src rightside" href="../../src/sage/lir/compile.rs.html#1064-1536">source</a><a href="#impl-Compile-for-ConstExpr" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Compile.html" title="trait sage::lir::Compile">Compile</a> for <a class="enum" href="enum.ConstExpr.html" title="enum sage::lir::ConstExpr">ConstExpr</a></h3></section></summary><div class="docblock"><p>Compile a constant expression.</p>
</div><div class="impl-items"><section id="method.compile_expr" class="method trait-impl"><a class="src rightside" href="../../src/sage/lir/compile.rs.html#1065-1535">source</a><a href="#method.compile_expr" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Compile.html#tymethod.compile_expr" class="fn">compile_expr</a>(
</div></details></div></details></div><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Clone-for-ConstExpr" class="impl"><a class="src rightside" href="../../src/sage/lir/expr/const_expr.rs.html#24">source</a><a href="#impl-Clone-for-ConstExpr" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="enum" href="enum.ConstExpr.html" title="enum sage::lir::ConstExpr">ConstExpr</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl"><a class="src rightside" href="../../src/sage/lir/expr/const_expr.rs.html#24">source</a><a href="#method.clone" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.76.0/core/clone/trait.Clone.html#tymethod.clone" class="fn">clone</a>(&amp;self) -&gt; <a class="enum" href="enum.ConstExpr.html" title="enum sage::lir::ConstExpr">ConstExpr</a></h4></section></summary><div class='docblock'>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.76.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.76.0/src/core/clone.rs.html#169">source</a></span><a href="#method.clone_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.76.0/core/clone/trait.Clone.html#method.clone_from" class="fn">clone_from</a>(&amp;mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&amp;Self</a>)</h4></section></summary><div class='docblock'>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.76.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Compile-for-ConstExpr" class="impl"><a class="src rightside" href="../../src/sage/lir/compile.rs.html#1067-1539">source</a><a href="#impl-Compile-for-ConstExpr" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Compile.html" title="trait sage::lir::Compile">Compile</a> for <a class="enum" href="enum.ConstExpr.html" title="enum sage::lir::ConstExpr">ConstExpr</a></h3></section></summary><div class="docblock"><p>Compile a constant expression.</p>
</div><div class="impl-items"><section id="method.compile_expr" class="method trait-impl"><a class="src rightside" href="../../src/sage/lir/compile.rs.html#1068-1538">source</a><a href="#method.compile_expr" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Compile.html#tymethod.compile_expr" class="fn">compile_expr</a>(
self,
env: &amp;mut <a class="struct" href="struct.Env.html" title="struct sage::lir::Env">Env</a>,
output: &amp;mut dyn <a class="trait" href="../asm/trait.AssemblyProgram.html" title="trait sage::asm::AssemblyProgram">AssemblyProgram</a>
Expand Down
4 changes: 2 additions & 2 deletions docs/sage/lir/enum.Expr.html
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@
and write another expression to its position in memory.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.assign_op" class="method"><a class="src rightside" href="../../src/sage/lir/expr/expression.rs.html#773-775">source</a><h4 class="code-header">pub fn <a href="#method.assign_op" class="fn">assign_op</a>(self, op: impl <a class="trait" href="https://doc.rust-lang.org/1.76.0/alloc/string/trait.ToString.html" title="trait alloc::string::ToString">ToString</a>, e: impl <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;Self&gt;) -&gt; Self</h4></section></summary><div class="docblock"><p>Perform an AssignOp on this expression.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.assign" class="method"><a class="src rightside" href="../../src/sage/lir/expr/expression.rs.html#778-780">source</a><h4 class="code-header">pub fn <a href="#method.assign" class="fn">assign</a>(self, op: impl <a class="trait" href="https://doc.rust-lang.org/1.76.0/alloc/string/trait.ToString.html" title="trait alloc::string::ToString">ToString</a>, e: impl <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;Self&gt;) -&gt; Self</h4></section></summary><div class="docblock"><p>Perform an AssignOp on this expression.</p>
</div></details></div></details></div><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Clone-for-Expr" class="impl"><a class="src rightside" href="../../src/sage/lir/expr/expression.rs.html#24">source</a><a href="#impl-Clone-for-Expr" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="enum" href="enum.Expr.html" title="enum sage::lir::Expr">Expr</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl"><a class="src rightside" href="../../src/sage/lir/expr/expression.rs.html#24">source</a><a href="#method.clone" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.76.0/core/clone/trait.Clone.html#tymethod.clone" class="fn">clone</a>(&amp;self) -&gt; <a class="enum" href="enum.Expr.html" title="enum sage::lir::Expr">Expr</a></h4></section></summary><div class='docblock'>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.76.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.76.0/src/core/clone.rs.html#169">source</a></span><a href="#method.clone_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.76.0/core/clone/trait.Clone.html#method.clone_from" class="fn">clone_from</a>(&amp;mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&amp;Self</a>)</h4></section></summary><div class='docblock'>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.76.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Compile-for-Expr" class="impl"><a class="src rightside" href="../../src/sage/lir/compile.rs.html#69-1061">source</a><a href="#impl-Compile-for-Expr" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Compile.html" title="trait sage::lir::Compile">Compile</a> for <a class="enum" href="enum.Expr.html" title="enum sage::lir::Expr">Expr</a></h3></section></summary><div class="docblock"><p>Compile an LIR expression into several core assembly instructions.</p>
</div><div class="impl-items"><section id="method.compile_expr" class="method trait-impl"><a class="src rightside" href="../../src/sage/lir/compile.rs.html#70-1060">source</a><a href="#method.compile_expr" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Compile.html#tymethod.compile_expr" class="fn">compile_expr</a>(
</div></details></div></details></div><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Clone-for-Expr" class="impl"><a class="src rightside" href="../../src/sage/lir/expr/expression.rs.html#24">source</a><a href="#impl-Clone-for-Expr" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="enum" href="enum.Expr.html" title="enum sage::lir::Expr">Expr</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl"><a class="src rightside" href="../../src/sage/lir/expr/expression.rs.html#24">source</a><a href="#method.clone" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.76.0/core/clone/trait.Clone.html#tymethod.clone" class="fn">clone</a>(&amp;self) -&gt; <a class="enum" href="enum.Expr.html" title="enum sage::lir::Expr">Expr</a></h4></section></summary><div class='docblock'>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.76.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.76.0/src/core/clone.rs.html#169">source</a></span><a href="#method.clone_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.76.0/core/clone/trait.Clone.html#method.clone_from" class="fn">clone_from</a>(&amp;mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&amp;Self</a>)</h4></section></summary><div class='docblock'>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.76.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Compile-for-Expr" class="impl"><a class="src rightside" href="../../src/sage/lir/compile.rs.html#69-1064">source</a><a href="#impl-Compile-for-Expr" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Compile.html" title="trait sage::lir::Compile">Compile</a> for <a class="enum" href="enum.Expr.html" title="enum sage::lir::Expr">Expr</a></h3></section></summary><div class="docblock"><p>Compile an LIR expression into several core assembly instructions.</p>
</div><div class="impl-items"><section id="method.compile_expr" class="method trait-impl"><a class="src rightside" href="../../src/sage/lir/compile.rs.html#70-1063">source</a><a href="#method.compile_expr" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Compile.html#tymethod.compile_expr" class="fn">compile_expr</a>(
self,
env: &amp;mut <a class="struct" href="struct.Env.html" title="struct sage::lir::Env">Env</a>,
output: &amp;mut dyn <a class="trait" href="../asm/trait.AssemblyProgram.html" title="trait sage::asm::AssemblyProgram">AssemblyProgram</a>
Expand Down
Loading

0 comments on commit ecfaa83

Please sign in to comment.