This commit is contained in:
acoglio 2021-08-30 20:47:38 +00:00
parent 15c39cdc7c
commit 12d6f4928d
16 changed files with 144 additions and 144 deletions

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,4 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Creates a new AST from a given file path and source code text."><meta name="keywords" content="rust, rustlang, rust-lang, parse_ast"><title>parse_ast in leo_parser - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><script src="../crates.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">&#9776;</div><a href='../leo_parser/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="index.html">leo_parser</a></h2><div id="sidebar-vars" data-name="parse_ast" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img src="../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../settings.html" title="settings"><img src="../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="index.html">leo_parser</a>::<wbr><a class="fn" href="#">parse_ast</a><button id="copy-path" onclick="copy_path(this)" title="copy path"><img src="../clipboard.svg" width="19" height="18" alt="Copy item import" title="Copy item import to clipboard"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span><a class="srclink" href="../src/leo_parser/lib.rs.html#39-41" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn parse_ast&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.54.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.str.html">str</a>&gt;, Y:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.54.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.str.html">str</a>&gt;&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;path: T, <br>&nbsp;&nbsp;&nbsp;&nbsp;source: Y<br>) -&gt; <a class="type" href="../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="struct" href="../leo_ast/struct.Ast.html" title="struct leo_ast::Ast">Ast</a>&gt;</pre><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates a new AST from a given file path and source code text.</p>
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">&#9776;</div><a href='../leo_parser/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="index.html">leo_parser</a></h2><div id="sidebar-vars" data-name="parse_ast" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img src="../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../settings.html" title="settings"><img src="../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="index.html">leo_parser</a>::<wbr><a class="fn" href="#">parse_ast</a><button id="copy-path" onclick="copy_path(this)" title="copy path"><img src="../clipboard.svg" width="19" height="18" alt="Copy item import" title="Copy item import to clipboard"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span><a class="srclink" href="../src/leo_parser/lib.rs.html#39-41" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn parse_ast&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.54.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.str.html">str</a>&gt;, Y:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.54.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.str.html">str</a>&gt;&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;path: T, <br>&nbsp;&nbsp;&nbsp;&nbsp;source: Y<br>) -&gt; <a class="type" href="../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;Ast&gt;</pre><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates a new AST from a given file path and source code text.</p>
</div></details></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="leo_parser" data-search-index-js="../search-index.js" data-search-js="../search.js"></div><script src="../main.js"></script></body></html>

View File

@ -132,7 +132,7 @@ The lexer goes through character by character as bytes, and converts the bytes i
<p>All function and token names are as close as possible to the <a href="./../grammar/README.md">Leo Grammar</a></p>
</div></details><h2 id="reexports" class="section-header"><a href="#reexports">Re-exports</a></h2>
<table><tr class="import-item"><td><code>pub use <a class="mod" href="parser/index.html" title="mod leo_parser::parser">parser</a>::*;</code></td><td class="docblock-short"></td></tr></table><h2 id="modules" class="section-header"><a href="#modules">Modules</a></h2>
<table><tr class="module-item"><td><a class="mod" href="parser/index.html" title="leo_parser::parser mod">parser</a></td><td class="docblock-short"><p>The parser to convert Leo code text into an <a href="../leo_ast/program/struct.Program.html" title="Program"><code>Program</code></a> AST type.</p>
<table><tr class="module-item"><td><a class="mod" href="parser/index.html" title="leo_parser::parser mod">parser</a></td><td class="docblock-short"><p>The parser to convert Leo code text into an [<code>Program</code>] AST type.</p>
</td></tr><tr class="module-item"><td><a class="mod" href="tokenizer/index.html" title="leo_parser::tokenizer mod">tokenizer</a></td><td class="docblock-short"><p>The tokenizer to convert Leo code text into tokens.</p>
</td></tr></table><h2 id="constants" class="section-header"><a href="#constants">Constants</a></h2>
<table><tr class="module-item"><td><a class="constant" href="constant.KEYWORD_TOKENS.html" title="leo_parser::KEYWORD_TOKENS constant">KEYWORD_TOKENS</a></td><td class="docblock-short"><p>Represents all valid Leo keyword tokens.</p>

View File

@ -2,5 +2,5 @@
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">&#9776;</div><a href='../../../leo_parser/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><h2 class="location">Module context</h2><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li></ul></div><div id="sidebar-vars" data-name="context" data-ty="mod" data-relpath="./"></div><script defer src="./sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img src="../../../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../../settings.html" title="settings"><img src="../../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Module <a href="../../index.html">leo_parser</a>::<wbr><a href="../index.html">parser</a>::<wbr><a class="mod" href="#">context</a><button id="copy-path" onclick="copy_path(this)" title="copy path"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item import" title="Copy item import to clipboard"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span><a class="srclink" href="../../../src/leo_parser/parser/context.rs.html#17-381" title="goto source code">[src]</a></span></h1><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
<table><tr class="module-item"><td><a class="struct" href="struct.ParserContext.html" title="leo_parser::parser::context::ParserContext struct">ParserContext</a></td><td class="docblock-short"><p>Stores a program in tokenized format plus additional context.
May be converted into a <a href="../../../leo_ast/program/struct.Program.html" title="Program"><code>Program</code></a> AST by parsing all tokens.</p>
May be converted into a [<code>Program</code>] AST by parsing all tokens.</p>
</td></tr></table></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="leo_parser" data-search-index-js="../../../search-index.js" data-search-js="../../../search.js"></div><script src="../../../main.js"></script></body></html>

View File

@ -5,7 +5,7 @@
end_span: <a class="struct" href="../../../leo_errors/common/span/struct.Span.html" title="struct leo_errors::common::span::Span">Span</a>,
pub(crate) fuzzy_struct_state: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a>,
}</pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Stores a program in tokenized format plus additional context.
May be converted into a <a href="../../../leo_ast/program/struct.Program.html" title="Program"><code>Program</code></a> AST by parsing all tokens.</p>
May be converted into a [<code>Program</code>] AST by parsing all tokens.</p>
</div></details><h2 id="fields" class="fields small-section-header">
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.tokens" class="structfield small-section-header"><a href="#structfield.tokens" class="anchor field"></a><code>tokens: <a class="struct" href="https://doc.rust-lang.org/1.54.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../tokenizer/lexer/struct.SpannedToken.html" title="struct leo_parser::tokenizer::lexer::SpannedToken">SpannedToken</a>&gt;</code></span><span id="structfield.end_span" class="structfield small-section-header"><a href="#structfield.end_span" class="anchor field"></a><code>end_span: <a class="struct" href="../../../leo_errors/common/span/struct.Span.html" title="struct leo_errors::common::span::Span">Span</a></code></span><span id="structfield.fuzzy_struct_state" class="structfield small-section-header"><a href="#structfield.fuzzy_struct_state" class="anchor field"></a><code>fuzzy_struct_state: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a></code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl" class="impl has-srclink"><h3 class="code-header in-band">impl <a class="struct" href="struct.ParserContext.html" title="struct leo_parser::parser::context::ParserContext">ParserContext</a></h3><a href="#impl" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/context.rs.html#41-381" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.new" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.new" class="fnname">new</a>(tokens: <a class="struct" href="https://doc.rust-lang.org/1.54.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../tokenizer/lexer/struct.SpannedToken.html" title="struct leo_parser::tokenizer::lexer::SpannedToken">SpannedToken</a>&gt;) -&gt; Self</h4><a href="#method.new" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/context.rs.html#45-61" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a new <a href="struct.ParserContext.html" title="ParserContext"><code>ParserContext</code></a> type given a vector of tokens.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.eof" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.eof" class="fnname">eof</a>(&amp;self) -&gt; <a class="enum" href="../../../leo_errors/enum.LeoError.html" title="enum leo_errors::LeoError">LeoError</a></h4><a href="#method.eof" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/context.rs.html#66-68" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an unexpected end of function [<code>SyntaxError</code>].</p>
@ -15,79 +15,79 @@ May be converted into a <a href="../../../leo_ast/program/struct.Program.html" t
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.eat" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.eat" class="fnname">eat</a>(&amp;mut self, token: <a class="enum" href="../../tokenizer/token/enum.Token.html" title="enum leo_parser::tokenizer::token::Token">Token</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../tokenizer/lexer/struct.SpannedToken.html" title="struct leo_parser::tokenizer::lexer::SpannedToken">SpannedToken</a>&gt;</h4><a href="#method.eat" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/context.rs.html#119-126" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Removes the next token if it exists and returns it, or <a href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html#variant.None" title="None">None</a> if
the next token does not exist.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.backtrack" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.backtrack" class="fnname">backtrack</a>(&amp;mut self, token: <a class="struct" href="../../tokenizer/lexer/struct.SpannedToken.html" title="struct leo_parser::tokenizer::lexer::SpannedToken">SpannedToken</a>)</h4><a href="#method.backtrack" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/context.rs.html#131-133" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Appends a token to the back of the vector.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.eat_identifier" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.eat_identifier" class="fnname">eat_identifier</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../../leo_ast/common/identifier/struct.Identifier.html" title="struct leo_ast::common::identifier::Identifier">Identifier</a>&gt;</h4><a href="#method.eat_identifier" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/context.rs.html#139-156" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Removes the next token if it is a [<code>Token::Ident(_)</code>] and returns it, or <a href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html#variant.None" title="None">None</a> if
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.eat_identifier" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.eat_identifier" class="fnname">eat_identifier</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Identifier&gt;</h4><a href="#method.eat_identifier" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/context.rs.html#139-156" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Removes the next token if it is a [<code>Token::Ident(_)</code>] and returns it, or <a href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html#variant.None" title="None">None</a> if
the next token is not a [<code>Token::Ident(_)</code>] or if the next token does not exist.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.peek_group_coordinate" class="method has-srclink"><h4 class="code-header">fn <a href="#method.peek_group_coordinate" class="fnname">peek_group_coordinate</a>(&amp;self, i: &amp;mut <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.usize.html">usize</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="../../../leo_ast/groups/group_coordinate/enum.GroupCoordinate.html" title="enum leo_ast::groups::group_coordinate::GroupCoordinate">GroupCoordinate</a>&gt;</h4><a href="#method.peek_group_coordinate" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/context.rs.html#162-187" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a reference to the next token if it is a <a href="../../../leo_ast/groups/group_coordinate/enum.GroupCoordinate.html" title="GroupCoordinate"><code>GroupCoordinate</code></a>, or <a href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html#variant.None" title="None">None</a> if
the next token is not a <a href="../../../leo_ast/groups/group_coordinate/enum.GroupCoordinate.html" title="GroupCoordinate"><code>GroupCoordinate</code></a>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.eat_group_partial" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.eat_group_partial" class="fnname">eat_group_partial</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self<br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a><a class="enum" href="../../../leo_ast/groups/group_coordinate/enum.GroupCoordinate.html" title="enum leo_ast::groups::group_coordinate::GroupCoordinate">GroupCoordinate</a>, <a class="enum" href="../../../leo_ast/groups/group_coordinate/enum.GroupCoordinate.html" title="enum leo_ast::groups::group_coordinate::GroupCoordinate">GroupCoordinate</a>, <a class="struct" href="../../../leo_errors/common/span/struct.Span.html" title="struct leo_errors::common::span::Span">Span</a><a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a>&gt;&gt;</h4><a href="#method.eat_group_partial" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/context.rs.html#193-257" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Removes the next two tokens if they are a pair of <a href="../../../leo_ast/groups/group_coordinate/enum.GroupCoordinate.html" title="GroupCoordinate"><code>GroupCoordinate</code></a> and returns them,
or <a href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html#variant.None" title="None">None</a> if the next token is not a <a href="../../../leo_ast/groups/group_coordinate/enum.GroupCoordinate.html" title="GroupCoordinate"><code>GroupCoordinate</code></a>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.eat_int" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.eat_int" class="fnname">eat_int</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a><a class="struct" href="../../../leo_ast/common/positive_number/struct.PositiveNumber.html" title="struct leo_ast::common::positive_number::PositiveNumber">PositiveNumber</a>, <a class="struct" href="../../../leo_errors/common/span/struct.Span.html" title="struct leo_errors::common::span::Span">Span</a><a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a>&gt;</h4><a href="#method.eat_int" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/context.rs.html#263-280" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Removes the next token if it is a [<code>Token::Int(_)</code>] and returns it, or <a href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html#variant.None" title="None">None</a> if
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.peek_group_coordinate" class="method has-srclink"><h4 class="code-header">fn <a href="#method.peek_group_coordinate" class="fnname">peek_group_coordinate</a>(&amp;self, i: &amp;mut <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.usize.html">usize</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;GroupCoordinate&gt;</h4><a href="#method.peek_group_coordinate" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/context.rs.html#162-187" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a reference to the next token if it is a [<code>GroupCoordinate</code>], or <a href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html#variant.None" title="None">None</a> if
the next token is not a [<code>GroupCoordinate</code>].</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.eat_group_partial" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.eat_group_partial" class="fnname">eat_group_partial</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self<br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a>GroupCoordinate, GroupCoordinate, <a class="struct" href="../../../leo_errors/common/span/struct.Span.html" title="struct leo_errors::common::span::Span">Span</a><a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a>&gt;&gt;</h4><a href="#method.eat_group_partial" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/context.rs.html#193-257" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Removes the next two tokens if they are a pair of [<code>GroupCoordinate</code>] and returns them,
or <a href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html#variant.None" title="None">None</a> if the next token is not a [<code>GroupCoordinate</code>].</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.eat_int" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.eat_int" class="fnname">eat_int</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a>PositiveNumber, <a class="struct" href="../../../leo_errors/common/span/struct.Span.html" title="struct leo_errors::common::span::Span">Span</a><a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a>&gt;</h4><a href="#method.eat_int" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/context.rs.html#263-280" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Removes the next token if it is a [<code>Token::Int(_)</code>] and returns it, or <a href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html#variant.None" title="None">None</a> if
the next token is not a [<code>Token::Int(_)</code>] or if the next token does not exist.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.eat_any" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.eat_any" class="fnname">eat_any</a>(&amp;mut self, token: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.slice.html">&amp;[</a><a class="enum" href="../../tokenizer/token/enum.Token.html" title="enum leo_parser::tokenizer::token::Token">Token</a><a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.slice.html">]</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../tokenizer/lexer/struct.SpannedToken.html" title="struct leo_parser::tokenizer::lexer::SpannedToken">SpannedToken</a>&gt;</h4><a href="#method.eat_any" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/context.rs.html#286-293" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Removes the next token if it exists and returns it, or <a href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html#variant.None" title="None">None</a> if
the next token does not exist.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.expect" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.expect" class="fnname">expect</a>(&amp;mut self, token: <a class="enum" href="../../tokenizer/token/enum.Token.html" title="enum leo_parser::tokenizer::token::Token">Token</a>) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="struct" href="../../../leo_errors/common/span/struct.Span.html" title="struct leo_errors::common::span::Span">Span</a>&gt;</h4><a href="#method.expect" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/context.rs.html#298-308" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns the span of the next token if it is equal to the given <a href="../../tokenizer/token/enum.Token.html" title="Token"><code>Token</code></a>, or error.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.expect_oneof" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.expect_oneof" class="fnname">expect_oneof</a>(&amp;mut self, token: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.slice.html">&amp;[</a><a class="enum" href="../../tokenizer/token/enum.Token.html" title="enum leo_parser::tokenizer::token::Token">Token</a><a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.slice.html">]</a>) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="struct" href="../../tokenizer/lexer/struct.SpannedToken.html" title="struct leo_parser::tokenizer::lexer::SpannedToken">SpannedToken</a>&gt;</h4><a href="#method.expect_oneof" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/context.rs.html#313-328" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns the span of the next token if it is equal to one of the given <a href="../../tokenizer/token/enum.Token.html" title="Token"><code>Token</code></a>s, or error.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.expect_loose_identifier" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.expect_loose_identifier" class="fnname">expect_loose_identifier</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="struct" href="../../../leo_ast/common/identifier/struct.Identifier.html" title="struct leo_ast::common::identifier::Identifier">Identifier</a>&gt;</h4><a href="#method.expect_loose_identifier" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/context.rs.html#334-345" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns the <a href="../../../leo_ast/common/identifier/struct.Identifier.html" title="Identifier"><code>Identifier</code></a> of the next token if it is a keyword,
[<code>Token::Int(_)</code>], or an <a href="../../../leo_ast/common/identifier/struct.Identifier.html" title="Identifier"><code>Identifier</code></a>, or error.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.expect_ident" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.expect_ident" class="fnname">expect_ident</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="struct" href="../../../leo_ast/common/identifier/struct.Identifier.html" title="struct leo_ast::common::identifier::Identifier">Identifier</a>&gt;</h4><a href="#method.expect_ident" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/context.rs.html#350-369" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns the <a href="../../../leo_ast/common/identifier/struct.Identifier.html" title="Identifier"><code>Identifier</code></a> of the next token if it is an <a href="../../../leo_ast/common/identifier/struct.Identifier.html" title="Identifier"><code>Identifier</code></a>, or error.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.expect_loose_identifier" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.expect_loose_identifier" class="fnname">expect_loose_identifier</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;Identifier&gt;</h4><a href="#method.expect_loose_identifier" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/context.rs.html#334-345" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns the [<code>Identifier</code>] of the next token if it is a keyword,
[<code>Token::Int(_)</code>], or an [<code>Identifier</code>], or error.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.expect_ident" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.expect_ident" class="fnname">expect_ident</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;Identifier&gt;</h4><a href="#method.expect_ident" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/context.rs.html#350-369" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns the [<code>Identifier</code>] of the next token if it is an [<code>Identifier</code>], or error.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.expect_any" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.expect_any" class="fnname">expect_any</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="struct" href="../../tokenizer/lexer/struct.SpannedToken.html" title="struct leo_parser::tokenizer::lexer::SpannedToken">SpannedToken</a>&gt;</h4><a href="#method.expect_any" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/context.rs.html#374-380" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns the next token if it exists or return end of function.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-1" class="impl has-srclink"><h3 class="code-header in-band">impl <a class="struct" href="struct.ParserContext.html" title="struct leo_parser::parser::context::ParserContext">ParserContext</a></h3><a href="#impl-1" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/expression.rs.html#38-733" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_expression" class="fnname">parse_expression</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="enum" href="../../../leo_ast/expression/enum.Expression.html" title="enum leo_ast::expression::Expression">Expression</a>&gt;</h4><a href="#method.parse_expression" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/expression.rs.html#43-57" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an <a href="../../../leo_ast/expression/enum.Expression.html" title="Expression"><code>Expression</code></a> AST node if the next token is an expression.
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-1" class="impl has-srclink"><h3 class="code-header in-band">impl <a class="struct" href="struct.ParserContext.html" title="struct leo_parser::parser::context::ParserContext">ParserContext</a></h3><a href="#impl-1" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/expression.rs.html#38-733" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_expression" class="fnname">parse_expression</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;Expression&gt;</h4><a href="#method.parse_expression" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/expression.rs.html#43-57" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an [<code>Expression</code>] AST node if the next token is an expression.
Includes circuit init expressions.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_conditional_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_conditional_expression" class="fnname">parse_conditional_expression</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="enum" href="../../../leo_ast/expression/enum.Expression.html" title="enum leo_ast::expression::Expression">Expression</a>&gt;</h4><a href="#method.parse_conditional_expression" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/expression.rs.html#65-82" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an <a href="../../../leo_ast/expression/enum.Expression.html" title="Expression"><code>Expression</code></a> AST node if the next tokens represent
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_conditional_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_conditional_expression" class="fnname">parse_conditional_expression</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;Expression&gt;</h4><a href="#method.parse_conditional_expression" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/expression.rs.html#65-82" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an [<code>Expression</code>] AST node if the next tokens represent
a ternary expression. May or may not include circuit init expressions.</p>
<p>Otherwise, tries to parse the next token using [<code>parse_disjunctive_expression</code>].</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_disjunctive_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_disjunctive_expression" class="fnname">parse_disjunctive_expression</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="enum" href="../../../leo_ast/expression/enum.Expression.html" title="enum leo_ast::expression::Expression">Expression</a>&gt;</h4><a href="#method.parse_disjunctive_expression" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/expression.rs.html#90-102" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an <a href="../../../leo_ast/expression/enum.Expression.html" title="Expression"><code>Expression</code></a> AST node if the next tokens represent
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_disjunctive_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_disjunctive_expression" class="fnname">parse_disjunctive_expression</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;Expression&gt;</h4><a href="#method.parse_disjunctive_expression" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/expression.rs.html#90-102" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an [<code>Expression</code>] AST node if the next tokens represent
a binary or expression.</p>
<p>Otherwise, tries to parse the next token using [<code>parse_conjunctive_expression</code>].</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_conjunctive_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_conjunctive_expression" class="fnname">parse_conjunctive_expression</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="enum" href="../../../leo_ast/expression/enum.Expression.html" title="enum leo_ast::expression::Expression">Expression</a>&gt;</h4><a href="#method.parse_conjunctive_expression" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/expression.rs.html#110-122" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an <a href="../../../leo_ast/expression/enum.Expression.html" title="Expression"><code>Expression</code></a> AST node if the next tokens represent a
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_conjunctive_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_conjunctive_expression" class="fnname">parse_conjunctive_expression</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;Expression&gt;</h4><a href="#method.parse_conjunctive_expression" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/expression.rs.html#110-122" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an [<code>Expression</code>] AST node if the next tokens represent a
binary and expression.</p>
<p>Otherwise, tries to parse the next token using [<code>parse_bit_or_expression</code>].</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_equality_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_equality_expression" class="fnname">parse_equality_expression</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="enum" href="../../../leo_ast/expression/enum.Expression.html" title="enum leo_ast::expression::Expression">Expression</a>&gt;</h4><a href="#method.parse_equality_expression" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/expression.rs.html#190-206" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an <a href="../../../leo_ast/expression/enum.Expression.html" title="Expression"><code>Expression</code></a> AST node if the next tokens represent a
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_equality_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_equality_expression" class="fnname">parse_equality_expression</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;Expression&gt;</h4><a href="#method.parse_equality_expression" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/expression.rs.html#190-206" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an [<code>Expression</code>] AST node if the next tokens represent a
binary bitwise or expression.</p>
<p>Otherwise, tries to parse the next token using [<code>parse_bit_xor_expression</code>].</p>
<p>Returns an <a href="../../../leo_ast/expression/enum.Expression.html" title="Expression"><code>Expression</code></a> AST node if the next tokens represent a
<p>Returns an [<code>Expression</code>] AST node if the next tokens represent a
binary bitwise xor expression.</p>
<p>Otherwise, tries to parse the next token using [<code>parse_bit_and_expression</code>].</p>
<p>Returns an <a href="../../../leo_ast/expression/enum.Expression.html" title="Expression"><code>Expression</code></a> AST node if the next tokens represent a
<p>Returns an [<code>Expression</code>] AST node if the next tokens represent a
binary bitwise and expression.</p>
<p>Otherwise, tries to parse the next token using [<code>parse_equality_expression</code>].</p>
<p>Returns an <a href="../../../leo_ast/expression/enum.Expression.html" title="Expression"><code>Expression</code></a> AST node if the next tokens represent a
<p>Returns an [<code>Expression</code>] AST node if the next tokens represent a
binary equals or not equals expression.</p>
<p>Otherwise, tries to parse the next token using [<code>parse_ordering_expression</code>].</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_ordering_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_ordering_expression" class="fnname">parse_ordering_expression</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="enum" href="../../../leo_ast/expression/enum.Expression.html" title="enum leo_ast::expression::Expression">Expression</a>&gt;</h4><a href="#method.parse_ordering_expression" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/expression.rs.html#214-233" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an <a href="../../../leo_ast/expression/enum.Expression.html" title="Expression"><code>Expression</code></a> AST node if the next tokens represent a
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_ordering_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_ordering_expression" class="fnname">parse_ordering_expression</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;Expression&gt;</h4><a href="#method.parse_ordering_expression" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/expression.rs.html#214-233" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an [<code>Expression</code>] AST node if the next tokens represent a
binary relational expression: less than, less than or equals, greater than, greater than or equals.</p>
<p>Otherwise, tries to parse the next token using [<code>parse_shift_expression</code>].</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_additive_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_additive_expression" class="fnname">parse_additive_expression</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="enum" href="../../../leo_ast/expression/enum.Expression.html" title="enum leo_ast::expression::Expression">Expression</a>&gt;</h4><a href="#method.parse_additive_expression" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/expression.rs.html#266-282" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an <a href="../../../leo_ast/expression/enum.Expression.html" title="Expression"><code>Expression</code></a> AST node if the next tokens represent a
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_additive_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_additive_expression" class="fnname">parse_additive_expression</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;Expression&gt;</h4><a href="#method.parse_additive_expression" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/expression.rs.html#266-282" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an [<code>Expression</code>] AST node if the next tokens represent a
binary shift expression.</p>
<p>Otherwise, tries to parse the next token using [<code>parse_additive_expression</code>].</p>
<p>Returns an <a href="../../../leo_ast/expression/enum.Expression.html" title="Expression"><code>Expression</code></a> AST node if the next tokens represent a
<p>Returns an [<code>Expression</code>] AST node if the next tokens represent a
binary addition or subtraction expression.</p>
<p>Otherwise, tries to parse the next token using [<code>parse_mul_div_pow_expression</code>].</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_multiplicative_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_multiplicative_expression" class="fnname">parse_multiplicative_expression</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="enum" href="../../../leo_ast/expression/enum.Expression.html" title="enum leo_ast::expression::Expression">Expression</a>&gt;</h4><a href="#method.parse_multiplicative_expression" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/expression.rs.html#290-307" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an <a href="../../../leo_ast/expression/enum.Expression.html" title="Expression"><code>Expression</code></a> AST node if the next tokens represent a
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_multiplicative_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_multiplicative_expression" class="fnname">parse_multiplicative_expression</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;Expression&gt;</h4><a href="#method.parse_multiplicative_expression" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/expression.rs.html#290-307" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an [<code>Expression</code>] AST node if the next tokens represent a
binary multiplication, division, or modulus expression.</p>
<p>Otherwise, tries to parse the next token using [<code>parse_exponential_expression</code>].</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_exponential_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_exponential_expression" class="fnname">parse_exponential_expression</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="enum" href="../../../leo_ast/expression/enum.Expression.html" title="enum leo_ast::expression::Expression">Expression</a>&gt;</h4><a href="#method.parse_exponential_expression" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/expression.rs.html#315-331" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an <a href="../../../leo_ast/expression/enum.Expression.html" title="Expression"><code>Expression</code></a> AST node if the next tokens represent a
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_exponential_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_exponential_expression" class="fnname">parse_exponential_expression</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;Expression&gt;</h4><a href="#method.parse_exponential_expression" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/expression.rs.html#315-331" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an [<code>Expression</code>] AST node if the next tokens represent a
binary exponentiation expression.</p>
<p>Otherwise, tries to parse the next token using [<code>parse_cast_expression</code>].</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_cast_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_cast_expression" class="fnname">parse_cast_expression</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="enum" href="../../../leo_ast/expression/enum.Expression.html" title="enum leo_ast::expression::Expression">Expression</a>&gt;</h4><a href="#method.parse_cast_expression" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/expression.rs.html#339-350" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an <a href="../../../leo_ast/expression/enum.Expression.html" title="Expression"><code>Expression</code></a> AST node if the next tokens represent a
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_cast_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_cast_expression" class="fnname">parse_cast_expression</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;Expression&gt;</h4><a href="#method.parse_cast_expression" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/expression.rs.html#339-350" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an [<code>Expression</code>] AST node if the next tokens represent a
type cast expression.</p>
<p>Otherwise, tries to parse the next token using [<code>parse_unary_expression</code>].</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_unary_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_unary_expression" class="fnname">parse_unary_expression</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="enum" href="../../../leo_ast/expression/enum.Expression.html" title="enum leo_ast::expression::Expression">Expression</a>&gt;</h4><a href="#method.parse_unary_expression" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/expression.rs.html#358-395" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an <a href="../../../leo_ast/expression/enum.Expression.html" title="Expression"><code>Expression</code></a> AST node if the next tokens represent a
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_unary_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_unary_expression" class="fnname">parse_unary_expression</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;Expression&gt;</h4><a href="#method.parse_unary_expression" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/expression.rs.html#358-395" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an [<code>Expression</code>] AST node if the next tokens represent a
unary not, negate, or bitwise not expression.</p>
<p>Otherwise, tries to parse the next token using [<code>parse_postfix_expression</code>].</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_postfix_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_postfix_expression" class="fnname">parse_postfix_expression</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="enum" href="../../../leo_ast/expression/enum.Expression.html" title="enum leo_ast::expression::Expression">Expression</a>&gt;</h4><a href="#method.parse_postfix_expression" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/expression.rs.html#403-501" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an <a href="../../../leo_ast/expression/enum.Expression.html" title="Expression"><code>Expression</code></a> AST node if the next tokens represent an
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_postfix_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_postfix_expression" class="fnname">parse_postfix_expression</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;Expression&gt;</h4><a href="#method.parse_postfix_expression" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/expression.rs.html#403-501" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an [<code>Expression</code>] AST node if the next tokens represent an
array access, circuit member access, function call, or static function call expression.</p>
<p>Otherwise, tries to parse the next token using [<code>parse_primary_expression</code>].</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_spread_or_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_spread_or_expression" class="fnname">parse_spread_or_expression</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="enum" href="../../../leo_ast/common/spread_or_expression/enum.SpreadOrExpression.html" title="enum leo_ast::common::spread_or_expression::SpreadOrExpression">SpreadOrExpression</a>&gt;</h4><a href="#method.parse_spread_or_expression" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/expression.rs.html#509-515" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a <a href="../../../leo_ast/common/spread_or_expression/enum.SpreadOrExpression.html" title="SpreadOrExpression"><code>SpreadOrExpression</code></a> AST node if the next tokens represent an
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_spread_or_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_spread_or_expression" class="fnname">parse_spread_or_expression</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;SpreadOrExpression&gt;</h4><a href="#method.parse_spread_or_expression" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/expression.rs.html#509-515" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a [<code>SpreadOrExpression</code>] AST node if the next tokens represent an
spread or expression.</p>
<p>This method should only be called in the context of an array access expression.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_circuit_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_circuit_expression" class="fnname">parse_circuit_expression</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;identifier: <a class="struct" href="../../../leo_ast/common/identifier/struct.Identifier.html" title="struct leo_ast::common::identifier::Identifier">Identifier</a><br>) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="enum" href="../../../leo_ast/expression/enum.Expression.html" title="enum leo_ast::expression::Expression">Expression</a>&gt;</h4><a href="#method.parse_circuit_expression" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/expression.rs.html#521-553" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an <a href="../../../leo_ast/expression/enum.Expression.html" title="Expression"><code>Expression</code></a> AST node if the next tokens represent an
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_circuit_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_circuit_expression" class="fnname">parse_circuit_expression</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;identifier: Identifier<br>) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;Expression&gt;</h4><a href="#method.parse_circuit_expression" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/expression.rs.html#521-553" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an [<code>Expression</code>] AST node if the next tokens represent an
circuit initialization expression.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_tuple_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_tuple_expression" class="fnname">parse_tuple_expression</a>(&amp;mut self, span: &amp;<a class="struct" href="../../../leo_errors/common/span/struct.Span.html" title="struct leo_errors::common::span::Span">Span</a>) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="enum" href="../../../leo_ast/expression/enum.Expression.html" title="enum leo_ast::expression::Expression">Expression</a>&gt;</h4><a href="#method.parse_tuple_expression" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/expression.rs.html#559-592" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an <a href="../../../leo_ast/expression/enum.Expression.html" title="Expression"><code>Expression</code></a> AST node if the next tokens represent an
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_tuple_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_tuple_expression" class="fnname">parse_tuple_expression</a>(&amp;mut self, span: &amp;<a class="struct" href="../../../leo_errors/common/span/struct.Span.html" title="struct leo_errors::common::span::Span">Span</a>) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;Expression&gt;</h4><a href="#method.parse_tuple_expression" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/expression.rs.html#559-592" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an [<code>Expression</code>] AST node if the next tokens represent an
tuple initialization expression.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_array_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_array_expression" class="fnname">parse_array_expression</a>(&amp;mut self, span: &amp;<a class="struct" href="../../../leo_errors/common/span/struct.Span.html" title="struct leo_errors::common::span::Span">Span</a>) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="enum" href="../../../leo_ast/expression/enum.Expression.html" title="enum leo_ast::expression::Expression">Expression</a>&gt;</h4><a href="#method.parse_array_expression" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/expression.rs.html#598-647" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an <a href="../../../leo_ast/expression/enum.Expression.html" title="Expression"><code>Expression</code></a> AST node if the next tokens represent an
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_array_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_array_expression" class="fnname">parse_array_expression</a>(&amp;mut self, span: &amp;<a class="struct" href="../../../leo_errors/common/span/struct.Span.html" title="struct leo_errors::common::span::Span">Span</a>) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;Expression&gt;</h4><a href="#method.parse_array_expression" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/expression.rs.html#598-647" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an [<code>Expression</code>] AST node if the next tokens represent an
array initialization expression.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_primary_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_primary_expression" class="fnname">parse_primary_expression</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="enum" href="../../../leo_ast/expression/enum.Expression.html" title="enum leo_ast::expression::Expression">Expression</a>&gt;</h4><a href="#method.parse_primary_expression" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/expression.rs.html#658-732" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an <a href="../../../leo_ast/expression/enum.Expression.html" title="Expression"><code>Expression</code></a> AST node if the next token is a primary expression:</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_primary_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_primary_expression" class="fnname">parse_primary_expression</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;Expression&gt;</h4><a href="#method.parse_primary_expression" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/expression.rs.html#658-732" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an [<code>Expression</code>] AST node if the next token is a primary expression:</p>
<ul>
<li>Literals: field, group, unsigned integer, signed integer, boolean, address</li>
<li>Aggregate types: array, tuple</li>
@ -95,46 +95,46 @@ array initialization expression.</p>
<li>self</li>
</ul>
<p>Returns an expression error if the token cannot be matched.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-2" class="impl has-srclink"><h3 class="code-header in-band">impl <a class="struct" href="struct.ParserContext.html" title="struct leo_parser::parser::context::ParserContext">ParserContext</a></h3><a href="#impl-2" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/file.rs.html#25-542" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_program" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_program" class="fnname">parse_program</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="struct" href="../../../leo_ast/program/struct.Program.html" title="struct leo_ast::program::Program">Program</a>&gt;</h4><a href="#method.parse_program" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/file.rs.html#29-92" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a <a href="../../../leo_ast/program/struct.Program.html" title="Program"><code>Program</code></a> AST if all tokens can be consumed and represent a valid Leo program.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_annotation" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_annotation" class="fnname">parse_annotation</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="struct" href="../../../leo_ast/annotation/struct.Annotation.html" title="struct leo_ast::annotation::Annotation">Annotation</a>&gt;</h4><a href="#method.parse_annotation" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/file.rs.html#97-152" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an <a href="../../../leo_ast/annotation/struct.Annotation.html" title="Annotation"><code>Annotation</code></a> AST node if the next tokens represent a supported annotation.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_package_accesses" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_package_accesses" class="fnname">parse_package_accesses</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;span: &amp;<a class="struct" href="../../../leo_errors/common/span/struct.Span.html" title="struct leo_errors::common::span::Span">Span</a><br>) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.54.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="enum" href="../../../leo_ast/imports/package_access/enum.PackageAccess.html" title="enum leo_ast::imports::package_access::PackageAccess">PackageAccess</a>&gt;&gt;</h4><a href="#method.parse_package_accesses" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/file.rs.html#158-175" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a vector of <a href="../../../leo_ast/imports/package_access/enum.PackageAccess.html" title="PackageAccess"><code>PackageAccess</code></a> AST nodes if the next tokens represent package access
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-2" class="impl has-srclink"><h3 class="code-header in-band">impl <a class="struct" href="struct.ParserContext.html" title="struct leo_parser::parser::context::ParserContext">ParserContext</a></h3><a href="#impl-2" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/file.rs.html#25-542" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_program" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_program" class="fnname">parse_program</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;Program&gt;</h4><a href="#method.parse_program" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/file.rs.html#29-92" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a [<code>Program</code>] AST if all tokens can be consumed and represent a valid Leo program.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_annotation" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_annotation" class="fnname">parse_annotation</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;Annotation&gt;</h4><a href="#method.parse_annotation" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/file.rs.html#97-152" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an [<code>Annotation</code>] AST node if the next tokens represent a supported annotation.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_package_accesses" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_package_accesses" class="fnname">parse_package_accesses</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;span: &amp;<a class="struct" href="../../../leo_errors/common/span/struct.Span.html" title="struct leo_errors::common::span::Span">Span</a><br>) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.54.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;PackageAccess&gt;&gt;</h4><a href="#method.parse_package_accesses" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/file.rs.html#158-175" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a vector of [<code>PackageAccess</code>] AST nodes if the next tokens represent package access
expressions within an import statement.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_package_access" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_package_access" class="fnname">parse_package_access</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="enum" href="../../../leo_ast/imports/package_access/enum.PackageAccess.html" title="enum leo_ast::imports::package_access::PackageAccess">PackageAccess</a>&gt;</h4><a href="#method.parse_package_access" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/file.rs.html#181-221" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a <a href="../../../leo_ast/imports/package_access/enum.PackageAccess.html" title="PackageAccess"><code>PackageAccess</code></a> AST node if the next tokens represent a package access expression
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_package_access" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_package_access" class="fnname">parse_package_access</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;PackageAccess&gt;</h4><a href="#method.parse_package_access" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/file.rs.html#181-221" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a [<code>PackageAccess</code>] AST node if the next tokens represent a package access expression
within an import statement.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_package_name" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_package_name" class="fnname">parse_package_name</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="struct" href="../../../leo_ast/common/identifier/struct.Identifier.html" title="struct leo_ast::common::identifier::Identifier">Identifier</a>&gt;</h4><a href="#method.parse_package_name" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/file.rs.html#226-275" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an <a href="../../../leo_ast/common/identifier/struct.Identifier.html" title="Identifier"><code>Identifier</code></a> AST node if the next tokens represent a valid package name.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_package_path" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_package_path" class="fnname">parse_package_path</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="enum" href="../../../leo_ast/imports/package_or_packages/enum.PackageOrPackages.html" title="enum leo_ast::imports::package_or_packages::PackageOrPackages">PackageOrPackages</a>&gt;</h4><a href="#method.parse_package_path" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/file.rs.html#281-299" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a <a href="../../../leo_ast/imports/package_or_packages/enum.PackageOrPackages.html" title="PackageOrPackages"><code>PackageOrPackages</code></a> AST node if the next tokens represent a valid package import
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_package_name" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_package_name" class="fnname">parse_package_name</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;Identifier&gt;</h4><a href="#method.parse_package_name" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/file.rs.html#226-275" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an [<code>Identifier</code>] AST node if the next tokens represent a valid package name.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_package_path" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_package_path" class="fnname">parse_package_path</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;PackageOrPackages&gt;</h4><a href="#method.parse_package_path" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/file.rs.html#281-299" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a [<code>PackageOrPackages</code>] AST node if the next tokens represent a valid package import
with accesses.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_import_statement" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_import_statement" class="fnname">parse_import_statement</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="struct" href="../../../leo_ast/imports/import/struct.ImportStatement.html" title="struct leo_ast::imports::import::ImportStatement">ImportStatement</a>&gt;</h4><a href="#method.parse_import_statement" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/file.rs.html#304-312" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a <a href="../../../leo_ast/imports/import/struct.ImportStatement.html" title="ImportStatement"><code>ImportStatement</code></a> AST node if the next tokens represent an import statement.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_circuit_declaration" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_circuit_declaration" class="fnname">parse_circuit_declaration</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.54.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="enum" href="../../../leo_ast/circuits/circuit_member/enum.CircuitMember.html" title="enum leo_ast::circuits::circuit_member::CircuitMember">CircuitMember</a>&gt;&gt;</h4><a href="#method.parse_circuit_declaration" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/file.rs.html#318-356" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a <a href="../../../leo_ast/circuits/circuit_member/enum.CircuitMember.html" title="CircuitMember"><code>CircuitMember</code></a> AST node if the next tokens represent a circuit member variable
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_import_statement" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_import_statement" class="fnname">parse_import_statement</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;ImportStatement&gt;</h4><a href="#method.parse_import_statement" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/file.rs.html#304-312" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a [<code>ImportStatement</code>] AST node if the next tokens represent an import statement.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_circuit_declaration" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_circuit_declaration" class="fnname">parse_circuit_declaration</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.54.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;CircuitMember&gt;&gt;</h4><a href="#method.parse_circuit_declaration" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/file.rs.html#318-356" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a [<code>CircuitMember</code>] AST node if the next tokens represent a circuit member variable
or circuit member function.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_member_variable_declaration" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_member_variable_declaration" class="fnname">parse_member_variable_declaration</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self<br>) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a><a class="enum" href="../../../leo_ast/circuits/circuit_member/enum.CircuitMember.html" title="enum leo_ast::circuits::circuit_member::CircuitMember">CircuitMember</a>, <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a><a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a>&gt;</h4><a href="#method.parse_member_variable_declaration" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/file.rs.html#361-377" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a <a href="../../../leo_ast/circuits/circuit_member/enum.CircuitMember.html" title="CircuitMember"><code>CircuitMember</code></a> AST node if the next tokens represent a circuit member variable.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_member_function_declaration" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_member_function_declaration" class="fnname">parse_member_function_declaration</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="enum" href="../../../leo_ast/circuits/circuit_member/enum.CircuitMember.html" title="enum leo_ast::circuits::circuit_member::CircuitMember">CircuitMember</a>&gt;</h4><a href="#method.parse_member_function_declaration" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/file.rs.html#382-399" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a <a href="../../../leo_ast/circuits/circuit_member/enum.CircuitMember.html" title="CircuitMember"><code>CircuitMember</code></a> AST node if the next tokens represent a circuit member function.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_circuit" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_circuit" class="fnname">parse_circuit</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a><a class="struct" href="../../../leo_ast/common/identifier/struct.Identifier.html" title="struct leo_ast::common::identifier::Identifier">Identifier</a>, <a class="struct" href="../../../leo_ast/circuits/circuit/struct.Circuit.html" title="struct leo_ast::circuits::circuit::Circuit">Circuit</a><a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a>&gt;</h4><a href="#method.parse_circuit" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/file.rs.html#405-419" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an [<code>(Identifier, Circuit)</code>] tuple of AST nodes if the next tokens represent a
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_member_variable_declaration" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_member_variable_declaration" class="fnname">parse_member_variable_declaration</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self<br>) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a>CircuitMember, <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a><a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a>&gt;</h4><a href="#method.parse_member_variable_declaration" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/file.rs.html#361-377" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a [<code>CircuitMember</code>] AST node if the next tokens represent a circuit member variable.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_member_function_declaration" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_member_function_declaration" class="fnname">parse_member_function_declaration</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;CircuitMember&gt;</h4><a href="#method.parse_member_function_declaration" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/file.rs.html#382-399" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a [<code>CircuitMember</code>] AST node if the next tokens represent a circuit member function.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_circuit" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_circuit" class="fnname">parse_circuit</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a>Identifier, Circuit<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a>&gt;</h4><a href="#method.parse_circuit" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/file.rs.html#405-419" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an [<code>(Identifier, Circuit)</code>] tuple of AST nodes if the next tokens represent a
circuit name and definition statement.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_function_parameters" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_function_parameters" class="fnname">parse_function_parameters</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="enum" href="../../../leo_ast/functions/input/input_variable/enum.FunctionInput.html" title="enum leo_ast::functions::input::input_variable::FunctionInput">FunctionInput</a>&gt;</h4><a href="#method.parse_function_parameters" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/file.rs.html#424-464" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a <a href="../../../leo_ast/functions/input/input_variable/enum.FunctionInput.html" title="FunctionInput"><code>FunctionInput</code></a> AST node if the next tokens represent a function parameter.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_function_declaration" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_function_declaration" class="fnname">parse_function_declaration</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a><a class="struct" href="../../../leo_ast/common/identifier/struct.Identifier.html" title="struct leo_ast::common::identifier::Identifier">Identifier</a>, <a class="struct" href="../../../leo_ast/functions/function/struct.Function.html" title="struct leo_ast::functions::function::Function">Function</a><a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a>&gt;</h4><a href="#method.parse_function_declaration" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/file.rs.html#470-504" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an [<code>(Identifier, Function)</code>] AST node if the next tokens represent a function name
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_function_parameters" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_function_parameters" class="fnname">parse_function_parameters</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;FunctionInput&gt;</h4><a href="#method.parse_function_parameters" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/file.rs.html#424-464" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a [<code>FunctionInput</code>] AST node if the next tokens represent a function parameter.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_function_declaration" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_function_declaration" class="fnname">parse_function_declaration</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a>Identifier, Function<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a>&gt;</h4><a href="#method.parse_function_declaration" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/file.rs.html#470-504" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an [<code>(Identifier, Function)</code>] AST node if the next tokens represent a function name
and function definition.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_global_const_declaration" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_global_const_declaration" class="fnname">parse_global_const_declaration</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self<br>) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a><a class="struct" href="https://doc.rust-lang.org/1.54.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="struct" href="../../../leo_ast/statements/definition/struct.DefinitionStatement.html" title="struct leo_ast::statements::definition::DefinitionStatement">DefinitionStatement</a><a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a>&gt;</h4><a href="#method.parse_global_const_declaration" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/file.rs.html#510-520" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an [<code>(String, DefinitionStatement)</code>] AST node if the next tokens represent a global
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_global_const_declaration" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_global_const_declaration" class="fnname">parse_global_const_declaration</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self<br>) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a><a class="struct" href="https://doc.rust-lang.org/1.54.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, DefinitionStatement<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a>&gt;</h4><a href="#method.parse_global_const_declaration" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/file.rs.html#510-520" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an [<code>(String, DefinitionStatement)</code>] AST node if the next tokens represent a global
const definition statement and assignment.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_type_alias" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_type_alias" class="fnname">parse_type_alias</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a><a class="struct" href="../../../leo_ast/common/identifier/struct.Identifier.html" title="struct leo_ast::common::identifier::Identifier">Identifier</a>, <a class="struct" href="../../../leo_ast/aliases/alias/struct.Alias.html" title="struct leo_ast::aliases::alias::Alias">Alias</a><a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a>&gt;</h4><a href="#method.parse_type_alias" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/file.rs.html#526-541" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an [<code>(String, Alias)</code>] AST node if the next tokens represent a global
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_type_alias" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_type_alias" class="fnname">parse_type_alias</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a>Identifier, Alias<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a>&gt;</h4><a href="#method.parse_type_alias" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/file.rs.html#526-541" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an [<code>(String, Alias)</code>] AST node if the next tokens represent a global
const definition statement and assignment.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-3" class="impl has-srclink"><h3 class="code-header in-band">impl <a class="struct" href="struct.ParserContext.html" title="struct leo_parser::parser::context::ParserContext">ParserContext</a></h3><a href="#impl-3" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/statement.rs.html#39-358" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.construct_assignee_access" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.construct_assignee_access" class="fnname">construct_assignee_access</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;expr: <a class="enum" href="../../../leo_ast/expression/enum.Expression.html" title="enum leo_ast::expression::Expression">Expression</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;accesses: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.54.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="enum" href="../../../leo_ast/statements/assign/assignee/enum.AssigneeAccess.html" title="enum leo_ast::statements::assign::assignee::AssigneeAccess">AssigneeAccess</a>&gt;<br>) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="struct" href="../../../leo_ast/common/identifier/struct.Identifier.html" title="struct leo_ast::common::identifier::Identifier">Identifier</a>&gt;</h4><a href="#method.construct_assignee_access" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/statement.rs.html#44-70" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an <a href="../../../leo_ast/common/identifier/struct.Identifier.html" title="Identifier"><code>Identifier</code></a> AST node if the given <a href="../../../leo_ast/expression/enum.Expression.html" title="Expression"><code>Expression</code></a> AST node evaluates to an
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-3" class="impl has-srclink"><h3 class="code-header in-band">impl <a class="struct" href="struct.ParserContext.html" title="struct leo_parser::parser::context::ParserContext">ParserContext</a></h3><a href="#impl-3" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/statement.rs.html#39-358" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.construct_assignee_access" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.construct_assignee_access" class="fnname">construct_assignee_access</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;expr: Expression, <br>&nbsp;&nbsp;&nbsp;&nbsp;accesses: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.54.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;AssigneeAccess&gt;<br>) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;Identifier&gt;</h4><a href="#method.construct_assignee_access" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/statement.rs.html#44-70" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an [<code>Identifier</code>] AST node if the given [<code>Expression</code>] AST node evaluates to an
identifier access. The access is stored in the given accesses.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.construct_assignee" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.construct_assignee" class="fnname">construct_assignee</a>(expr: <a class="enum" href="../../../leo_ast/expression/enum.Expression.html" title="enum leo_ast::expression::Expression">Expression</a>) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="struct" href="../../../leo_ast/statements/assign/assignee/struct.Assignee.html" title="struct leo_ast::statements::assign::assignee::Assignee">Assignee</a>&gt;</h4><a href="#method.construct_assignee" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/statement.rs.html#75-85" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an <a href="../../../leo_ast/statements/assign/assignee/struct.Assignee.html" title="Assignee"><code>Assignee</code></a> AST node from the given <a href="../../../leo_ast/expression/enum.Expression.html" title="Expression"><code>Expression</code></a> AST node with accesses.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_statement" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_statement" class="fnname">parse_statement</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="enum" href="../../../leo_ast/statements/statement/enum.Statement.html" title="enum leo_ast::statements::statement::Statement">Statement</a>&gt;</h4><a href="#method.parse_statement" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/statement.rs.html#90-100" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a <a href="../../../leo_ast/statements/statement/enum.Statement.html" title="Statement"><code>Statement</code></a> AST node if the next tokens represent a statement.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_assign_statement" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_assign_statement" class="fnname">parse_assign_statement</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="enum" href="../../../leo_ast/statements/statement/enum.Statement.html" title="enum leo_ast::statements::statement::Statement">Statement</a>&gt;</h4><a href="#method.parse_assign_statement" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/statement.rs.html#105-142" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a <a href="../../../leo_ast/statements/block/struct.Block.html" title="Block"><code>Block</code></a> AST node if the next tokens represent a assign, or expression statement.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_block" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_block" class="fnname">parse_block</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="struct" href="../../../leo_ast/statements/block/struct.Block.html" title="struct leo_ast::statements::block::Block">Block</a>&gt;</h4><a href="#method.parse_block" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/statement.rs.html#147-164" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a <a href="../../../leo_ast/statements/block/struct.Block.html" title="Block"><code>Block</code></a> AST node if the next tokens represent a block of statements.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_return_statement" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_return_statement" class="fnname">parse_return_statement</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="struct" href="../../../leo_ast/statements/return_statement/struct.ReturnStatement.html" title="struct leo_ast::statements::return_statement::ReturnStatement">ReturnStatement</a>&gt;</h4><a href="#method.parse_return_statement" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/statement.rs.html#169-178" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a <a href="../../../leo_ast/statements/return_statement/struct.ReturnStatement.html" title="ReturnStatement"><code>ReturnStatement</code></a> AST node if the next tokens represent a return statement.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_conditional_statement" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_conditional_statement" class="fnname">parse_conditional_statement</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="struct" href="../../../leo_ast/statements/conditional/struct.ConditionalStatement.html" title="struct leo_ast::statements::conditional::ConditionalStatement">ConditionalStatement</a>&gt;</h4><a href="#method.parse_conditional_statement" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/statement.rs.html#183-207" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a <a href="../../../leo_ast/statements/conditional/struct.ConditionalStatement.html" title="ConditionalStatement"><code>ConditionalStatement</code></a> AST node if the next tokens represent a conditional statement.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_loop_statement" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_loop_statement" class="fnname">parse_loop_statement</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="struct" href="../../../leo_ast/statements/iteration/struct.IterationStatement.html" title="struct leo_ast::statements::iteration::IterationStatement">IterationStatement</a>&gt;</h4><a href="#method.parse_loop_statement" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/statement.rs.html#212-232" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an <a href="../../../leo_ast/statements/iteration/struct.IterationStatement.html" title="IterationStatement"><code>IterationStatement</code></a> AST node if the next tokens represent an iteration statement.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_console_args" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_console_args" class="fnname">parse_console_args</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="struct" href="../../../leo_ast/statements/console/console_args/struct.ConsoleArgs.html" title="struct leo_ast::statements::console::console_args::ConsoleArgs">ConsoleArgs</a>&gt;</h4><a href="#method.parse_console_args" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/statement.rs.html#237-265" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a <a href="../../../leo_ast/statements/console/console_args/struct.ConsoleArgs.html" title="ConsoleArgs"><code>ConsoleArgs</code></a> AST node if the next tokens represent a formatted string.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_console_statement" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_console_statement" class="fnname">parse_console_statement</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="struct" href="../../../leo_ast/statements/console/console_statement/struct.ConsoleStatement.html" title="struct leo_ast::statements::console::console_statement::ConsoleStatement">ConsoleStatement</a>&gt;</h4><a href="#method.parse_console_statement" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/statement.rs.html#270-293" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a <a href="../../../leo_ast/statements/console/console_statement/struct.ConsoleStatement.html" title="ConsoleStatement"><code>ConsoleStatement</code></a> AST node if the next tokens represent a console statement.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_variable_name" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_variable_name" class="fnname">parse_variable_name</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;span: &amp;<a class="struct" href="../../tokenizer/lexer/struct.SpannedToken.html" title="struct leo_parser::tokenizer::lexer::SpannedToken">SpannedToken</a><br>) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="struct" href="../../../leo_ast/statements/definition/variable_name/struct.VariableName.html" title="struct leo_ast::statements::definition::variable_name::VariableName">VariableName</a>&gt;</h4><a href="#method.parse_variable_name" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/statement.rs.html#299-311" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a <a href="../../../leo_ast/statements/definition/variable_name/struct.VariableName.html" title="VariableName"><code>VariableName</code></a> AST node if the next tokens represent a variable name with
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.construct_assignee" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.construct_assignee" class="fnname">construct_assignee</a>(expr: Expression) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;Assignee&gt;</h4><a href="#method.construct_assignee" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/statement.rs.html#75-85" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an [<code>Assignee</code>] AST node from the given [<code>Expression</code>] AST node with accesses.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_statement" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_statement" class="fnname">parse_statement</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;Statement&gt;</h4><a href="#method.parse_statement" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/statement.rs.html#90-100" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a [<code>Statement</code>] AST node if the next tokens represent a statement.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_assign_statement" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_assign_statement" class="fnname">parse_assign_statement</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;Statement&gt;</h4><a href="#method.parse_assign_statement" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/statement.rs.html#105-142" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a [<code>Block</code>] AST node if the next tokens represent a assign, or expression statement.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_block" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_block" class="fnname">parse_block</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;Block&gt;</h4><a href="#method.parse_block" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/statement.rs.html#147-164" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a [<code>Block</code>] AST node if the next tokens represent a block of statements.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_return_statement" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_return_statement" class="fnname">parse_return_statement</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;ReturnStatement&gt;</h4><a href="#method.parse_return_statement" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/statement.rs.html#169-178" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a [<code>ReturnStatement</code>] AST node if the next tokens represent a return statement.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_conditional_statement" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_conditional_statement" class="fnname">parse_conditional_statement</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;ConditionalStatement&gt;</h4><a href="#method.parse_conditional_statement" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/statement.rs.html#183-207" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a [<code>ConditionalStatement</code>] AST node if the next tokens represent a conditional statement.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_loop_statement" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_loop_statement" class="fnname">parse_loop_statement</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;IterationStatement&gt;</h4><a href="#method.parse_loop_statement" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/statement.rs.html#212-232" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an [<code>IterationStatement</code>] AST node if the next tokens represent an iteration statement.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_console_args" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_console_args" class="fnname">parse_console_args</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;ConsoleArgs&gt;</h4><a href="#method.parse_console_args" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/statement.rs.html#237-265" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a [<code>ConsoleArgs</code>] AST node if the next tokens represent a formatted string.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_console_statement" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_console_statement" class="fnname">parse_console_statement</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;ConsoleStatement&gt;</h4><a href="#method.parse_console_statement" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/statement.rs.html#270-293" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a [<code>ConsoleStatement</code>] AST node if the next tokens represent a console statement.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_variable_name" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_variable_name" class="fnname">parse_variable_name</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;span: &amp;<a class="struct" href="../../tokenizer/lexer/struct.SpannedToken.html" title="struct leo_parser::tokenizer::lexer::SpannedToken">SpannedToken</a><br>) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;VariableName&gt;</h4><a href="#method.parse_variable_name" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/statement.rs.html#299-311" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a [<code>VariableName</code>] AST node if the next tokens represent a variable name with
valid keywords.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_definition_statement" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_definition_statement" class="fnname">parse_definition_statement</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="struct" href="../../../leo_ast/statements/definition/struct.DefinitionStatement.html" title="struct leo_ast::statements::definition::DefinitionStatement">DefinitionStatement</a>&gt;</h4><a href="#method.parse_definition_statement" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/statement.rs.html#316-357" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a <a href="../../../leo_ast/statements/definition/struct.DefinitionStatement.html" title="DefinitionStatement"><code>DefinitionStatement</code></a> AST node if the next tokens represent a definition statement.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-4" class="impl has-srclink"><h3 class="code-header in-band">impl <a class="struct" href="struct.ParserContext.html" title="struct leo_parser::parser::context::ParserContext">ParserContext</a></h3><a href="#impl-4" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/type_.rs.html#38-129" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.token_to_int_type" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.token_to_int_type" class="fnname">token_to_int_type</a>(token: <a class="enum" href="../../tokenizer/token/enum.Token.html" title="enum leo_parser::tokenizer::token::Token">Token</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="../../../leo_ast/types/integer_type/enum.IntegerType.html" title="enum leo_ast::types::integer_type::IntegerType">IntegerType</a>&gt;</h4><a href="#method.token_to_int_type" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/type_.rs.html#42-56" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a <a href="../../../leo_ast/types/integer_type/enum.IntegerType.html" title="IntegerType"><code>IntegerType</code></a> AST node if the given token is a supported integer type, or <a href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html#variant.None" title="None"><code>None</code></a>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_array_dimensions" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_array_dimensions" class="fnname">parse_array_dimensions</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="struct" href="../../../leo_ast/common/array_dimensions/struct.ArrayDimensions.html" title="struct leo_ast::common::array_dimensions::ArrayDimensions">ArrayDimensions</a>&gt;</h4><a href="#method.parse_array_dimensions" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/type_.rs.html#61-81" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an <a href="../../../leo_ast/common/array_dimensions/struct.ArrayDimensions.html" title="ArrayDimensions"><code>ArrayDimensions</code></a> AST node if the next tokens represent dimensions for an array type.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_type" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_type" class="fnname">parse_type</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a><a class="enum" href="../../../leo_ast/types/type_/enum.Type.html" title="enum leo_ast::types::type_::Type">Type</a>, <a class="struct" href="../../../leo_errors/common/span/struct.Span.html" title="struct leo_errors::common::span::Span">Span</a><a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a>&gt;</h4><a href="#method.parse_type" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/type_.rs.html#87-128" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a [<code>(Type, Span)</code>] tuple of AST nodes if the next token represents a type. Also
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_definition_statement" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_definition_statement" class="fnname">parse_definition_statement</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;DefinitionStatement&gt;</h4><a href="#method.parse_definition_statement" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/statement.rs.html#316-357" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a [<code>DefinitionStatement</code>] AST node if the next tokens represent a definition statement.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-4" class="impl has-srclink"><h3 class="code-header in-band">impl <a class="struct" href="struct.ParserContext.html" title="struct leo_parser::parser::context::ParserContext">ParserContext</a></h3><a href="#impl-4" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/type_.rs.html#38-129" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.token_to_int_type" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.token_to_int_type" class="fnname">token_to_int_type</a>(token: <a class="enum" href="../../tokenizer/token/enum.Token.html" title="enum leo_parser::tokenizer::token::Token">Token</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;IntegerType&gt;</h4><a href="#method.token_to_int_type" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/type_.rs.html#42-56" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a [<code>IntegerType</code>] AST node if the given token is a supported integer type, or <a href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html#variant.None" title="None"><code>None</code></a>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_array_dimensions" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_array_dimensions" class="fnname">parse_array_dimensions</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;ArrayDimensions&gt;</h4><a href="#method.parse_array_dimensions" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/type_.rs.html#61-81" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an [<code>ArrayDimensions</code>] AST node if the next tokens represent dimensions for an array type.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_type" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_type" class="fnname">parse_type</a>(&amp;mut self) -&gt; <a class="type" href="../../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a>Type, <a class="struct" href="../../../leo_errors/common/span/struct.Span.html" title="struct leo_errors::common::span::Span">Span</a><a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a>&gt;</h4><a href="#method.parse_type" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/type_.rs.html#87-128" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a [<code>(Type, Span)</code>] tuple of AST nodes if the next token represents a type. Also
returns the span of the parsed token.</p>
</div></details></div></details><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Iterator" class="impl has-srclink"><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.ParserContext.html" title="struct leo_parser::parser::context::ParserContext">ParserContext</a></h3><a href="#impl-Iterator" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/context.rs.html#33-39" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Item" class="type trait-impl has-srclink"><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.54.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="type">Item</a> = <a class="struct" href="../../tokenizer/lexer/struct.SpannedToken.html" title="struct leo_parser::tokenizer::lexer::SpannedToken">SpannedToken</a></h4><a href="#associatedtype.Item" class="anchor"></a></div></summary><div class='docblock'><p>The type of the elements being iterated over.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.next" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/iter/traits/iterator/trait.Iterator.html#tymethod.next" class="fnname">next</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../tokenizer/lexer/struct.SpannedToken.html" title="struct leo_parser::tokenizer::lexer::SpannedToken">SpannedToken</a>&gt;</h4><a href="#method.next" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/parser/context.rs.html#36-38" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Advances the iterator and returns the next value. <a href="https://doc.rust-lang.org/1.54.0/core/iter/traits/iterator/trait.Iterator.html#tymethod.next">Read more</a></p>

View File

@ -1,4 +1,4 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Creates a new program from a given file path and source code text."><meta name="keywords" content="rust, rustlang, rust-lang, parse"><title>parse in leo_parser::parser - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">&#9776;</div><a href='../../leo_parser/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="../index.html">leo_parser</a>::<wbr><a href="index.html">parser</a></h2><div id="sidebar-vars" data-name="parse" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img src="../../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img src="../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">leo_parser</a>::<wbr><a href="index.html">parser</a>::<wbr><a class="fn" href="#">parse</a><button id="copy-path" onclick="copy_path(this)" title="copy path"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item import" title="Copy item import to clipboard"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span><a class="srclink" href="../../src/leo_parser/parser/mod.rs.html#49-53" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn parse(path: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.str.html">str</a>, source: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.str.html">str</a>) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="struct" href="../../leo_ast/program/struct.Program.html" title="struct leo_ast::program::Program">Program</a>&gt;</pre><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates a new program from a given file path and source code text.</p>
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">&#9776;</div><a href='../../leo_parser/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="../index.html">leo_parser</a>::<wbr><a href="index.html">parser</a></h2><div id="sidebar-vars" data-name="parse" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img src="../../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img src="../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">leo_parser</a>::<wbr><a href="index.html">parser</a>::<wbr><a class="fn" href="#">parse</a><button id="copy-path" onclick="copy_path(this)" title="copy path"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item import" title="Copy item import to clipboard"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span><a class="srclink" href="../../src/leo_parser/parser/mod.rs.html#49-53" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn parse(path: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.str.html">str</a>, source: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.str.html">str</a>) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;Program&gt;</pre><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates a new program from a given file path and source code text.</p>
</div></details></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="leo_parser" data-search-index-js="../../search-index.js" data-search-js="../../search.js"></div><script src="../../main.js"></script></body></html>

View File

@ -1,12 +1,12 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="The parser to convert Leo code text into an [`Program`] AST type."><meta name="keywords" content="rust, rustlang, rust-lang, parser"><title>leo_parser::parser - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">&#9776;</div><a href='../../leo_parser/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><h2 class="location">Module parser</h2><div class="sidebar-elems"><div class="block items"><ul><li><a href="#modules">Modules</a></li><li><a href="#structs">Structs</a></li><li><a href="#functions">Functions</a></li></ul></div><div id="sidebar-vars" data-name="parser" data-ty="mod" data-relpath="./"></div><script defer src="./sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img src="../../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img src="../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Module <a href="../index.html">leo_parser</a>::<wbr><a class="mod" href="#">parser</a><button id="copy-path" onclick="copy_path(this)" title="copy path"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item import" title="Copy item import to clipboard"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span><a class="srclink" href="../../src/leo_parser/parser/mod.rs.html#17-53" title="goto source code">[src]</a></span></h1><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The parser to convert Leo code text into an <a href="../../leo_ast/program/struct.Program.html" title="Program"><code>Program</code></a> AST type.</p>
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">&#9776;</div><a href='../../leo_parser/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><h2 class="location">Module parser</h2><div class="sidebar-elems"><div class="block items"><ul><li><a href="#modules">Modules</a></li><li><a href="#structs">Structs</a></li><li><a href="#functions">Functions</a></li></ul></div><div id="sidebar-vars" data-name="parser" data-ty="mod" data-relpath="./"></div><script defer src="./sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img src="../../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img src="../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Module <a href="../index.html">leo_parser</a>::<wbr><a class="mod" href="#">parser</a><button id="copy-path" onclick="copy_path(this)" title="copy path"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item import" title="Copy item import to clipboard"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span><a class="srclink" href="../../src/leo_parser/parser/mod.rs.html#17-53" title="goto source code">[src]</a></span></h1><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The parser to convert Leo code text into an [<code>Program</code>] AST type.</p>
<p>This module contains the <a href="fn.parse.html" title="parse()"><code>parse()</code></a> method which calls the underlying <a href="../tokenizer/fn.tokenize.html" title="tokenize()"><code>tokenize()</code></a>
method to create a new program ast.</p>
</div></details><h2 id="modules" class="section-header"><a href="#modules">Modules</a></h2>
<table><tr class="module-item"><td><a class="mod" href="context/index.html" title="leo_parser::parser::context mod">context</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="mod" href="expression/index.html" title="leo_parser::parser::expression mod">expression</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="mod" href="file/index.html" title="leo_parser::parser::file mod">file</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="mod" href="statement/index.html" title="leo_parser::parser::statement mod">statement</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="mod" href="type_/index.html" title="leo_parser::parser::type_ mod">type_</a></td><td class="docblock-short"></td></tr></table><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
<table><tr class="module-item"><td><a class="struct" href="struct.ParserContext.html" title="leo_parser::parser::ParserContext struct">ParserContext</a></td><td class="docblock-short"><p>Stores a program in tokenized format plus additional context.
May be converted into a <a href="../../leo_ast/program/struct.Program.html" title="Program"><code>Program</code></a> AST by parsing all tokens.</p>
May be converted into a [<code>Program</code>] AST by parsing all tokens.</p>
</td></tr></table><h2 id="functions" class="section-header"><a href="#functions">Functions</a></h2>
<table><tr class="module-item"><td><a class="fn" href="fn.assert_no_whitespace.html" title="leo_parser::parser::assert_no_whitespace fn">assert_no_whitespace</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.parse.html" title="leo_parser::parser::parse fn">parse</a></td><td class="docblock-short"><p>Creates a new program from a given file path and source code text.</p>
</td></tr></table></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="leo_parser" data-search-index-js="../../search-index.js" data-search-js="../../search.js"></div><script src="../../main.js"></script></body></html>

View File

@ -5,7 +5,7 @@
end_span: <a class="struct" href="../../leo_errors/common/span/struct.Span.html" title="struct leo_errors::common::span::Span">Span</a>,
pub(crate) fuzzy_struct_state: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a>,
}</pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Stores a program in tokenized format plus additional context.
May be converted into a <a href="../../leo_ast/program/struct.Program.html" title="Program"><code>Program</code></a> AST by parsing all tokens.</p>
May be converted into a [<code>Program</code>] AST by parsing all tokens.</p>
</div></details><h2 id="fields" class="fields small-section-header">
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.tokens" class="structfield small-section-header"><a href="#structfield.tokens" class="anchor field"></a><code>tokens: <a class="struct" href="https://doc.rust-lang.org/1.54.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../tokenizer/lexer/struct.SpannedToken.html" title="struct leo_parser::tokenizer::lexer::SpannedToken">SpannedToken</a>&gt;</code></span><span id="structfield.end_span" class="structfield small-section-header"><a href="#structfield.end_span" class="anchor field"></a><code>end_span: <a class="struct" href="../../leo_errors/common/span/struct.Span.html" title="struct leo_errors::common::span::Span">Span</a></code></span><span id="structfield.fuzzy_struct_state" class="structfield small-section-header"><a href="#structfield.fuzzy_struct_state" class="anchor field"></a><code>fuzzy_struct_state: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a></code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl" class="impl has-srclink"><h3 class="code-header in-band">impl <a class="struct" href="context/struct.ParserContext.html" title="struct leo_parser::parser::context::ParserContext">ParserContext</a></h3><a href="#impl" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/context.rs.html#41-381" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.new" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.new" class="fnname">new</a>(tokens: <a class="struct" href="https://doc.rust-lang.org/1.54.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../tokenizer/lexer/struct.SpannedToken.html" title="struct leo_parser::tokenizer::lexer::SpannedToken">SpannedToken</a>&gt;) -&gt; Self</h4><a href="#method.new" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/context.rs.html#45-61" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a new <a href="context/struct.ParserContext.html" title="ParserContext"><code>ParserContext</code></a> type given a vector of tokens.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.eof" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.eof" class="fnname">eof</a>(&amp;self) -&gt; <a class="enum" href="../../leo_errors/enum.LeoError.html" title="enum leo_errors::LeoError">LeoError</a></h4><a href="#method.eof" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/context.rs.html#66-68" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an unexpected end of function [<code>SyntaxError</code>].</p>
@ -15,79 +15,79 @@ May be converted into a <a href="../../leo_ast/program/struct.Program.html" titl
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.eat" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.eat" class="fnname">eat</a>(&amp;mut self, token: <a class="enum" href="../tokenizer/token/enum.Token.html" title="enum leo_parser::tokenizer::token::Token">Token</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../tokenizer/lexer/struct.SpannedToken.html" title="struct leo_parser::tokenizer::lexer::SpannedToken">SpannedToken</a>&gt;</h4><a href="#method.eat" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/context.rs.html#119-126" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Removes the next token if it exists and returns it, or <a href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html#variant.None" title="None">None</a> if
the next token does not exist.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.backtrack" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.backtrack" class="fnname">backtrack</a>(&amp;mut self, token: <a class="struct" href="../tokenizer/lexer/struct.SpannedToken.html" title="struct leo_parser::tokenizer::lexer::SpannedToken">SpannedToken</a>)</h4><a href="#method.backtrack" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/context.rs.html#131-133" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Appends a token to the back of the vector.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.eat_identifier" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.eat_identifier" class="fnname">eat_identifier</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../leo_ast/common/identifier/struct.Identifier.html" title="struct leo_ast::common::identifier::Identifier">Identifier</a>&gt;</h4><a href="#method.eat_identifier" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/context.rs.html#139-156" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Removes the next token if it is a [<code>Token::Ident(_)</code>] and returns it, or <a href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html#variant.None" title="None">None</a> if
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.eat_identifier" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.eat_identifier" class="fnname">eat_identifier</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Identifier&gt;</h4><a href="#method.eat_identifier" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/context.rs.html#139-156" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Removes the next token if it is a [<code>Token::Ident(_)</code>] and returns it, or <a href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html#variant.None" title="None">None</a> if
the next token is not a [<code>Token::Ident(_)</code>] or if the next token does not exist.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.peek_group_coordinate" class="method has-srclink"><h4 class="code-header">fn <a href="#method.peek_group_coordinate" class="fnname">peek_group_coordinate</a>(&amp;self, i: &amp;mut <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.usize.html">usize</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="../../leo_ast/groups/group_coordinate/enum.GroupCoordinate.html" title="enum leo_ast::groups::group_coordinate::GroupCoordinate">GroupCoordinate</a>&gt;</h4><a href="#method.peek_group_coordinate" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/context.rs.html#162-187" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a reference to the next token if it is a <a href="../../leo_ast/groups/group_coordinate/enum.GroupCoordinate.html" title="GroupCoordinate"><code>GroupCoordinate</code></a>, or <a href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html#variant.None" title="None">None</a> if
the next token is not a <a href="../../leo_ast/groups/group_coordinate/enum.GroupCoordinate.html" title="GroupCoordinate"><code>GroupCoordinate</code></a>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.eat_group_partial" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.eat_group_partial" class="fnname">eat_group_partial</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self<br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a><a class="enum" href="../../leo_ast/groups/group_coordinate/enum.GroupCoordinate.html" title="enum leo_ast::groups::group_coordinate::GroupCoordinate">GroupCoordinate</a>, <a class="enum" href="../../leo_ast/groups/group_coordinate/enum.GroupCoordinate.html" title="enum leo_ast::groups::group_coordinate::GroupCoordinate">GroupCoordinate</a>, <a class="struct" href="../../leo_errors/common/span/struct.Span.html" title="struct leo_errors::common::span::Span">Span</a><a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a>&gt;&gt;</h4><a href="#method.eat_group_partial" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/context.rs.html#193-257" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Removes the next two tokens if they are a pair of <a href="../../leo_ast/groups/group_coordinate/enum.GroupCoordinate.html" title="GroupCoordinate"><code>GroupCoordinate</code></a> and returns them,
or <a href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html#variant.None" title="None">None</a> if the next token is not a <a href="../../leo_ast/groups/group_coordinate/enum.GroupCoordinate.html" title="GroupCoordinate"><code>GroupCoordinate</code></a>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.eat_int" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.eat_int" class="fnname">eat_int</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a><a class="struct" href="../../leo_ast/common/positive_number/struct.PositiveNumber.html" title="struct leo_ast::common::positive_number::PositiveNumber">PositiveNumber</a>, <a class="struct" href="../../leo_errors/common/span/struct.Span.html" title="struct leo_errors::common::span::Span">Span</a><a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a>&gt;</h4><a href="#method.eat_int" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/context.rs.html#263-280" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Removes the next token if it is a [<code>Token::Int(_)</code>] and returns it, or <a href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html#variant.None" title="None">None</a> if
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.peek_group_coordinate" class="method has-srclink"><h4 class="code-header">fn <a href="#method.peek_group_coordinate" class="fnname">peek_group_coordinate</a>(&amp;self, i: &amp;mut <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.usize.html">usize</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;GroupCoordinate&gt;</h4><a href="#method.peek_group_coordinate" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/context.rs.html#162-187" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a reference to the next token if it is a [<code>GroupCoordinate</code>], or <a href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html#variant.None" title="None">None</a> if
the next token is not a [<code>GroupCoordinate</code>].</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.eat_group_partial" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.eat_group_partial" class="fnname">eat_group_partial</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self<br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a>GroupCoordinate, GroupCoordinate, <a class="struct" href="../../leo_errors/common/span/struct.Span.html" title="struct leo_errors::common::span::Span">Span</a><a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a>&gt;&gt;</h4><a href="#method.eat_group_partial" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/context.rs.html#193-257" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Removes the next two tokens if they are a pair of [<code>GroupCoordinate</code>] and returns them,
or <a href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html#variant.None" title="None">None</a> if the next token is not a [<code>GroupCoordinate</code>].</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.eat_int" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.eat_int" class="fnname">eat_int</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a>PositiveNumber, <a class="struct" href="../../leo_errors/common/span/struct.Span.html" title="struct leo_errors::common::span::Span">Span</a><a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a>&gt;</h4><a href="#method.eat_int" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/context.rs.html#263-280" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Removes the next token if it is a [<code>Token::Int(_)</code>] and returns it, or <a href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html#variant.None" title="None">None</a> if
the next token is not a [<code>Token::Int(_)</code>] or if the next token does not exist.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.eat_any" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.eat_any" class="fnname">eat_any</a>(&amp;mut self, token: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.slice.html">&amp;[</a><a class="enum" href="../tokenizer/token/enum.Token.html" title="enum leo_parser::tokenizer::token::Token">Token</a><a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.slice.html">]</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../tokenizer/lexer/struct.SpannedToken.html" title="struct leo_parser::tokenizer::lexer::SpannedToken">SpannedToken</a>&gt;</h4><a href="#method.eat_any" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/context.rs.html#286-293" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Removes the next token if it exists and returns it, or <a href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html#variant.None" title="None">None</a> if
the next token does not exist.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.expect" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.expect" class="fnname">expect</a>(&amp;mut self, token: <a class="enum" href="../tokenizer/token/enum.Token.html" title="enum leo_parser::tokenizer::token::Token">Token</a>) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="struct" href="../../leo_errors/common/span/struct.Span.html" title="struct leo_errors::common::span::Span">Span</a>&gt;</h4><a href="#method.expect" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/context.rs.html#298-308" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns the span of the next token if it is equal to the given <a href="../tokenizer/token/enum.Token.html" title="Token"><code>Token</code></a>, or error.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.expect_oneof" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.expect_oneof" class="fnname">expect_oneof</a>(&amp;mut self, token: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.slice.html">&amp;[</a><a class="enum" href="../tokenizer/token/enum.Token.html" title="enum leo_parser::tokenizer::token::Token">Token</a><a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.slice.html">]</a>) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="struct" href="../tokenizer/lexer/struct.SpannedToken.html" title="struct leo_parser::tokenizer::lexer::SpannedToken">SpannedToken</a>&gt;</h4><a href="#method.expect_oneof" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/context.rs.html#313-328" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns the span of the next token if it is equal to one of the given <a href="../tokenizer/token/enum.Token.html" title="Token"><code>Token</code></a>s, or error.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.expect_loose_identifier" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.expect_loose_identifier" class="fnname">expect_loose_identifier</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="struct" href="../../leo_ast/common/identifier/struct.Identifier.html" title="struct leo_ast::common::identifier::Identifier">Identifier</a>&gt;</h4><a href="#method.expect_loose_identifier" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/context.rs.html#334-345" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns the <a href="../../leo_ast/common/identifier/struct.Identifier.html" title="Identifier"><code>Identifier</code></a> of the next token if it is a keyword,
[<code>Token::Int(_)</code>], or an <a href="../../leo_ast/common/identifier/struct.Identifier.html" title="Identifier"><code>Identifier</code></a>, or error.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.expect_ident" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.expect_ident" class="fnname">expect_ident</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="struct" href="../../leo_ast/common/identifier/struct.Identifier.html" title="struct leo_ast::common::identifier::Identifier">Identifier</a>&gt;</h4><a href="#method.expect_ident" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/context.rs.html#350-369" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns the <a href="../../leo_ast/common/identifier/struct.Identifier.html" title="Identifier"><code>Identifier</code></a> of the next token if it is an <a href="../../leo_ast/common/identifier/struct.Identifier.html" title="Identifier"><code>Identifier</code></a>, or error.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.expect_loose_identifier" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.expect_loose_identifier" class="fnname">expect_loose_identifier</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;Identifier&gt;</h4><a href="#method.expect_loose_identifier" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/context.rs.html#334-345" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns the [<code>Identifier</code>] of the next token if it is a keyword,
[<code>Token::Int(_)</code>], or an [<code>Identifier</code>], or error.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.expect_ident" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.expect_ident" class="fnname">expect_ident</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;Identifier&gt;</h4><a href="#method.expect_ident" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/context.rs.html#350-369" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns the [<code>Identifier</code>] of the next token if it is an [<code>Identifier</code>], or error.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.expect_any" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.expect_any" class="fnname">expect_any</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="struct" href="../tokenizer/lexer/struct.SpannedToken.html" title="struct leo_parser::tokenizer::lexer::SpannedToken">SpannedToken</a>&gt;</h4><a href="#method.expect_any" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/context.rs.html#374-380" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns the next token if it exists or return end of function.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-1" class="impl has-srclink"><h3 class="code-header in-band">impl <a class="struct" href="context/struct.ParserContext.html" title="struct leo_parser::parser::context::ParserContext">ParserContext</a></h3><a href="#impl-1" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/expression.rs.html#38-733" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_expression" class="fnname">parse_expression</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="enum" href="../../leo_ast/expression/enum.Expression.html" title="enum leo_ast::expression::Expression">Expression</a>&gt;</h4><a href="#method.parse_expression" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/expression.rs.html#43-57" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an <a href="../../leo_ast/expression/enum.Expression.html" title="Expression"><code>Expression</code></a> AST node if the next token is an expression.
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-1" class="impl has-srclink"><h3 class="code-header in-band">impl <a class="struct" href="context/struct.ParserContext.html" title="struct leo_parser::parser::context::ParserContext">ParserContext</a></h3><a href="#impl-1" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/expression.rs.html#38-733" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_expression" class="fnname">parse_expression</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;Expression&gt;</h4><a href="#method.parse_expression" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/expression.rs.html#43-57" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an [<code>Expression</code>] AST node if the next token is an expression.
Includes circuit init expressions.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_conditional_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_conditional_expression" class="fnname">parse_conditional_expression</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="enum" href="../../leo_ast/expression/enum.Expression.html" title="enum leo_ast::expression::Expression">Expression</a>&gt;</h4><a href="#method.parse_conditional_expression" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/expression.rs.html#65-82" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an <a href="../../leo_ast/expression/enum.Expression.html" title="Expression"><code>Expression</code></a> AST node if the next tokens represent
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_conditional_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_conditional_expression" class="fnname">parse_conditional_expression</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;Expression&gt;</h4><a href="#method.parse_conditional_expression" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/expression.rs.html#65-82" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an [<code>Expression</code>] AST node if the next tokens represent
a ternary expression. May or may not include circuit init expressions.</p>
<p>Otherwise, tries to parse the next token using [<code>parse_disjunctive_expression</code>].</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_disjunctive_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_disjunctive_expression" class="fnname">parse_disjunctive_expression</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="enum" href="../../leo_ast/expression/enum.Expression.html" title="enum leo_ast::expression::Expression">Expression</a>&gt;</h4><a href="#method.parse_disjunctive_expression" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/expression.rs.html#90-102" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an <a href="../../leo_ast/expression/enum.Expression.html" title="Expression"><code>Expression</code></a> AST node if the next tokens represent
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_disjunctive_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_disjunctive_expression" class="fnname">parse_disjunctive_expression</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;Expression&gt;</h4><a href="#method.parse_disjunctive_expression" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/expression.rs.html#90-102" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an [<code>Expression</code>] AST node if the next tokens represent
a binary or expression.</p>
<p>Otherwise, tries to parse the next token using [<code>parse_conjunctive_expression</code>].</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_conjunctive_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_conjunctive_expression" class="fnname">parse_conjunctive_expression</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="enum" href="../../leo_ast/expression/enum.Expression.html" title="enum leo_ast::expression::Expression">Expression</a>&gt;</h4><a href="#method.parse_conjunctive_expression" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/expression.rs.html#110-122" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an <a href="../../leo_ast/expression/enum.Expression.html" title="Expression"><code>Expression</code></a> AST node if the next tokens represent a
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_conjunctive_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_conjunctive_expression" class="fnname">parse_conjunctive_expression</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;Expression&gt;</h4><a href="#method.parse_conjunctive_expression" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/expression.rs.html#110-122" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an [<code>Expression</code>] AST node if the next tokens represent a
binary and expression.</p>
<p>Otherwise, tries to parse the next token using [<code>parse_bit_or_expression</code>].</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_equality_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_equality_expression" class="fnname">parse_equality_expression</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="enum" href="../../leo_ast/expression/enum.Expression.html" title="enum leo_ast::expression::Expression">Expression</a>&gt;</h4><a href="#method.parse_equality_expression" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/expression.rs.html#190-206" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an <a href="../../leo_ast/expression/enum.Expression.html" title="Expression"><code>Expression</code></a> AST node if the next tokens represent a
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_equality_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_equality_expression" class="fnname">parse_equality_expression</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;Expression&gt;</h4><a href="#method.parse_equality_expression" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/expression.rs.html#190-206" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an [<code>Expression</code>] AST node if the next tokens represent a
binary bitwise or expression.</p>
<p>Otherwise, tries to parse the next token using [<code>parse_bit_xor_expression</code>].</p>
<p>Returns an <a href="../../leo_ast/expression/enum.Expression.html" title="Expression"><code>Expression</code></a> AST node if the next tokens represent a
<p>Returns an [<code>Expression</code>] AST node if the next tokens represent a
binary bitwise xor expression.</p>
<p>Otherwise, tries to parse the next token using [<code>parse_bit_and_expression</code>].</p>
<p>Returns an <a href="../../leo_ast/expression/enum.Expression.html" title="Expression"><code>Expression</code></a> AST node if the next tokens represent a
<p>Returns an [<code>Expression</code>] AST node if the next tokens represent a
binary bitwise and expression.</p>
<p>Otherwise, tries to parse the next token using [<code>parse_equality_expression</code>].</p>
<p>Returns an <a href="../../leo_ast/expression/enum.Expression.html" title="Expression"><code>Expression</code></a> AST node if the next tokens represent a
<p>Returns an [<code>Expression</code>] AST node if the next tokens represent a
binary equals or not equals expression.</p>
<p>Otherwise, tries to parse the next token using [<code>parse_ordering_expression</code>].</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_ordering_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_ordering_expression" class="fnname">parse_ordering_expression</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="enum" href="../../leo_ast/expression/enum.Expression.html" title="enum leo_ast::expression::Expression">Expression</a>&gt;</h4><a href="#method.parse_ordering_expression" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/expression.rs.html#214-233" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an <a href="../../leo_ast/expression/enum.Expression.html" title="Expression"><code>Expression</code></a> AST node if the next tokens represent a
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_ordering_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_ordering_expression" class="fnname">parse_ordering_expression</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;Expression&gt;</h4><a href="#method.parse_ordering_expression" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/expression.rs.html#214-233" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an [<code>Expression</code>] AST node if the next tokens represent a
binary relational expression: less than, less than or equals, greater than, greater than or equals.</p>
<p>Otherwise, tries to parse the next token using [<code>parse_shift_expression</code>].</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_additive_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_additive_expression" class="fnname">parse_additive_expression</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="enum" href="../../leo_ast/expression/enum.Expression.html" title="enum leo_ast::expression::Expression">Expression</a>&gt;</h4><a href="#method.parse_additive_expression" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/expression.rs.html#266-282" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an <a href="../../leo_ast/expression/enum.Expression.html" title="Expression"><code>Expression</code></a> AST node if the next tokens represent a
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_additive_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_additive_expression" class="fnname">parse_additive_expression</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;Expression&gt;</h4><a href="#method.parse_additive_expression" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/expression.rs.html#266-282" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an [<code>Expression</code>] AST node if the next tokens represent a
binary shift expression.</p>
<p>Otherwise, tries to parse the next token using [<code>parse_additive_expression</code>].</p>
<p>Returns an <a href="../../leo_ast/expression/enum.Expression.html" title="Expression"><code>Expression</code></a> AST node if the next tokens represent a
<p>Returns an [<code>Expression</code>] AST node if the next tokens represent a
binary addition or subtraction expression.</p>
<p>Otherwise, tries to parse the next token using [<code>parse_mul_div_pow_expression</code>].</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_multiplicative_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_multiplicative_expression" class="fnname">parse_multiplicative_expression</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="enum" href="../../leo_ast/expression/enum.Expression.html" title="enum leo_ast::expression::Expression">Expression</a>&gt;</h4><a href="#method.parse_multiplicative_expression" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/expression.rs.html#290-307" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an <a href="../../leo_ast/expression/enum.Expression.html" title="Expression"><code>Expression</code></a> AST node if the next tokens represent a
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_multiplicative_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_multiplicative_expression" class="fnname">parse_multiplicative_expression</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;Expression&gt;</h4><a href="#method.parse_multiplicative_expression" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/expression.rs.html#290-307" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an [<code>Expression</code>] AST node if the next tokens represent a
binary multiplication, division, or modulus expression.</p>
<p>Otherwise, tries to parse the next token using [<code>parse_exponential_expression</code>].</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_exponential_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_exponential_expression" class="fnname">parse_exponential_expression</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="enum" href="../../leo_ast/expression/enum.Expression.html" title="enum leo_ast::expression::Expression">Expression</a>&gt;</h4><a href="#method.parse_exponential_expression" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/expression.rs.html#315-331" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an <a href="../../leo_ast/expression/enum.Expression.html" title="Expression"><code>Expression</code></a> AST node if the next tokens represent a
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_exponential_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_exponential_expression" class="fnname">parse_exponential_expression</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;Expression&gt;</h4><a href="#method.parse_exponential_expression" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/expression.rs.html#315-331" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an [<code>Expression</code>] AST node if the next tokens represent a
binary exponentiation expression.</p>
<p>Otherwise, tries to parse the next token using [<code>parse_cast_expression</code>].</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_cast_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_cast_expression" class="fnname">parse_cast_expression</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="enum" href="../../leo_ast/expression/enum.Expression.html" title="enum leo_ast::expression::Expression">Expression</a>&gt;</h4><a href="#method.parse_cast_expression" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/expression.rs.html#339-350" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an <a href="../../leo_ast/expression/enum.Expression.html" title="Expression"><code>Expression</code></a> AST node if the next tokens represent a
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_cast_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_cast_expression" class="fnname">parse_cast_expression</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;Expression&gt;</h4><a href="#method.parse_cast_expression" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/expression.rs.html#339-350" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an [<code>Expression</code>] AST node if the next tokens represent a
type cast expression.</p>
<p>Otherwise, tries to parse the next token using [<code>parse_unary_expression</code>].</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_unary_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_unary_expression" class="fnname">parse_unary_expression</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="enum" href="../../leo_ast/expression/enum.Expression.html" title="enum leo_ast::expression::Expression">Expression</a>&gt;</h4><a href="#method.parse_unary_expression" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/expression.rs.html#358-395" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an <a href="../../leo_ast/expression/enum.Expression.html" title="Expression"><code>Expression</code></a> AST node if the next tokens represent a
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_unary_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_unary_expression" class="fnname">parse_unary_expression</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;Expression&gt;</h4><a href="#method.parse_unary_expression" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/expression.rs.html#358-395" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an [<code>Expression</code>] AST node if the next tokens represent a
unary not, negate, or bitwise not expression.</p>
<p>Otherwise, tries to parse the next token using [<code>parse_postfix_expression</code>].</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_postfix_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_postfix_expression" class="fnname">parse_postfix_expression</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="enum" href="../../leo_ast/expression/enum.Expression.html" title="enum leo_ast::expression::Expression">Expression</a>&gt;</h4><a href="#method.parse_postfix_expression" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/expression.rs.html#403-501" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an <a href="../../leo_ast/expression/enum.Expression.html" title="Expression"><code>Expression</code></a> AST node if the next tokens represent an
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_postfix_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_postfix_expression" class="fnname">parse_postfix_expression</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;Expression&gt;</h4><a href="#method.parse_postfix_expression" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/expression.rs.html#403-501" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an [<code>Expression</code>] AST node if the next tokens represent an
array access, circuit member access, function call, or static function call expression.</p>
<p>Otherwise, tries to parse the next token using [<code>parse_primary_expression</code>].</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_spread_or_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_spread_or_expression" class="fnname">parse_spread_or_expression</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="enum" href="../../leo_ast/common/spread_or_expression/enum.SpreadOrExpression.html" title="enum leo_ast::common::spread_or_expression::SpreadOrExpression">SpreadOrExpression</a>&gt;</h4><a href="#method.parse_spread_or_expression" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/expression.rs.html#509-515" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a <a href="../../leo_ast/common/spread_or_expression/enum.SpreadOrExpression.html" title="SpreadOrExpression"><code>SpreadOrExpression</code></a> AST node if the next tokens represent an
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_spread_or_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_spread_or_expression" class="fnname">parse_spread_or_expression</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;SpreadOrExpression&gt;</h4><a href="#method.parse_spread_or_expression" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/expression.rs.html#509-515" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a [<code>SpreadOrExpression</code>] AST node if the next tokens represent an
spread or expression.</p>
<p>This method should only be called in the context of an array access expression.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_circuit_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_circuit_expression" class="fnname">parse_circuit_expression</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;identifier: <a class="struct" href="../../leo_ast/common/identifier/struct.Identifier.html" title="struct leo_ast::common::identifier::Identifier">Identifier</a><br>) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="enum" href="../../leo_ast/expression/enum.Expression.html" title="enum leo_ast::expression::Expression">Expression</a>&gt;</h4><a href="#method.parse_circuit_expression" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/expression.rs.html#521-553" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an <a href="../../leo_ast/expression/enum.Expression.html" title="Expression"><code>Expression</code></a> AST node if the next tokens represent an
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_circuit_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_circuit_expression" class="fnname">parse_circuit_expression</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;identifier: Identifier<br>) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;Expression&gt;</h4><a href="#method.parse_circuit_expression" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/expression.rs.html#521-553" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an [<code>Expression</code>] AST node if the next tokens represent an
circuit initialization expression.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_tuple_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_tuple_expression" class="fnname">parse_tuple_expression</a>(&amp;mut self, span: &amp;<a class="struct" href="../../leo_errors/common/span/struct.Span.html" title="struct leo_errors::common::span::Span">Span</a>) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="enum" href="../../leo_ast/expression/enum.Expression.html" title="enum leo_ast::expression::Expression">Expression</a>&gt;</h4><a href="#method.parse_tuple_expression" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/expression.rs.html#559-592" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an <a href="../../leo_ast/expression/enum.Expression.html" title="Expression"><code>Expression</code></a> AST node if the next tokens represent an
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_tuple_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_tuple_expression" class="fnname">parse_tuple_expression</a>(&amp;mut self, span: &amp;<a class="struct" href="../../leo_errors/common/span/struct.Span.html" title="struct leo_errors::common::span::Span">Span</a>) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;Expression&gt;</h4><a href="#method.parse_tuple_expression" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/expression.rs.html#559-592" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an [<code>Expression</code>] AST node if the next tokens represent an
tuple initialization expression.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_array_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_array_expression" class="fnname">parse_array_expression</a>(&amp;mut self, span: &amp;<a class="struct" href="../../leo_errors/common/span/struct.Span.html" title="struct leo_errors::common::span::Span">Span</a>) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="enum" href="../../leo_ast/expression/enum.Expression.html" title="enum leo_ast::expression::Expression">Expression</a>&gt;</h4><a href="#method.parse_array_expression" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/expression.rs.html#598-647" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an <a href="../../leo_ast/expression/enum.Expression.html" title="Expression"><code>Expression</code></a> AST node if the next tokens represent an
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_array_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_array_expression" class="fnname">parse_array_expression</a>(&amp;mut self, span: &amp;<a class="struct" href="../../leo_errors/common/span/struct.Span.html" title="struct leo_errors::common::span::Span">Span</a>) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;Expression&gt;</h4><a href="#method.parse_array_expression" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/expression.rs.html#598-647" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an [<code>Expression</code>] AST node if the next tokens represent an
array initialization expression.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_primary_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_primary_expression" class="fnname">parse_primary_expression</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="enum" href="../../leo_ast/expression/enum.Expression.html" title="enum leo_ast::expression::Expression">Expression</a>&gt;</h4><a href="#method.parse_primary_expression" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/expression.rs.html#658-732" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an <a href="../../leo_ast/expression/enum.Expression.html" title="Expression"><code>Expression</code></a> AST node if the next token is a primary expression:</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_primary_expression" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_primary_expression" class="fnname">parse_primary_expression</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;Expression&gt;</h4><a href="#method.parse_primary_expression" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/expression.rs.html#658-732" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an [<code>Expression</code>] AST node if the next token is a primary expression:</p>
<ul>
<li>Literals: field, group, unsigned integer, signed integer, boolean, address</li>
<li>Aggregate types: array, tuple</li>
@ -95,46 +95,46 @@ array initialization expression.</p>
<li>self</li>
</ul>
<p>Returns an expression error if the token cannot be matched.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-2" class="impl has-srclink"><h3 class="code-header in-band">impl <a class="struct" href="context/struct.ParserContext.html" title="struct leo_parser::parser::context::ParserContext">ParserContext</a></h3><a href="#impl-2" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/file.rs.html#25-542" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_program" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_program" class="fnname">parse_program</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="struct" href="../../leo_ast/program/struct.Program.html" title="struct leo_ast::program::Program">Program</a>&gt;</h4><a href="#method.parse_program" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/file.rs.html#29-92" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a <a href="../../leo_ast/program/struct.Program.html" title="Program"><code>Program</code></a> AST if all tokens can be consumed and represent a valid Leo program.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_annotation" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_annotation" class="fnname">parse_annotation</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="struct" href="../../leo_ast/annotation/struct.Annotation.html" title="struct leo_ast::annotation::Annotation">Annotation</a>&gt;</h4><a href="#method.parse_annotation" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/file.rs.html#97-152" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an <a href="../../leo_ast/annotation/struct.Annotation.html" title="Annotation"><code>Annotation</code></a> AST node if the next tokens represent a supported annotation.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_package_accesses" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_package_accesses" class="fnname">parse_package_accesses</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;span: &amp;<a class="struct" href="../../leo_errors/common/span/struct.Span.html" title="struct leo_errors::common::span::Span">Span</a><br>) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.54.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="enum" href="../../leo_ast/imports/package_access/enum.PackageAccess.html" title="enum leo_ast::imports::package_access::PackageAccess">PackageAccess</a>&gt;&gt;</h4><a href="#method.parse_package_accesses" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/file.rs.html#158-175" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a vector of <a href="../../leo_ast/imports/package_access/enum.PackageAccess.html" title="PackageAccess"><code>PackageAccess</code></a> AST nodes if the next tokens represent package access
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-2" class="impl has-srclink"><h3 class="code-header in-band">impl <a class="struct" href="context/struct.ParserContext.html" title="struct leo_parser::parser::context::ParserContext">ParserContext</a></h3><a href="#impl-2" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/file.rs.html#25-542" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_program" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_program" class="fnname">parse_program</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;Program&gt;</h4><a href="#method.parse_program" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/file.rs.html#29-92" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a [<code>Program</code>] AST if all tokens can be consumed and represent a valid Leo program.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_annotation" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_annotation" class="fnname">parse_annotation</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;Annotation&gt;</h4><a href="#method.parse_annotation" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/file.rs.html#97-152" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an [<code>Annotation</code>] AST node if the next tokens represent a supported annotation.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_package_accesses" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_package_accesses" class="fnname">parse_package_accesses</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;span: &amp;<a class="struct" href="../../leo_errors/common/span/struct.Span.html" title="struct leo_errors::common::span::Span">Span</a><br>) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.54.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;PackageAccess&gt;&gt;</h4><a href="#method.parse_package_accesses" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/file.rs.html#158-175" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a vector of [<code>PackageAccess</code>] AST nodes if the next tokens represent package access
expressions within an import statement.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_package_access" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_package_access" class="fnname">parse_package_access</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="enum" href="../../leo_ast/imports/package_access/enum.PackageAccess.html" title="enum leo_ast::imports::package_access::PackageAccess">PackageAccess</a>&gt;</h4><a href="#method.parse_package_access" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/file.rs.html#181-221" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a <a href="../../leo_ast/imports/package_access/enum.PackageAccess.html" title="PackageAccess"><code>PackageAccess</code></a> AST node if the next tokens represent a package access expression
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_package_access" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_package_access" class="fnname">parse_package_access</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;PackageAccess&gt;</h4><a href="#method.parse_package_access" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/file.rs.html#181-221" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a [<code>PackageAccess</code>] AST node if the next tokens represent a package access expression
within an import statement.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_package_name" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_package_name" class="fnname">parse_package_name</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="struct" href="../../leo_ast/common/identifier/struct.Identifier.html" title="struct leo_ast::common::identifier::Identifier">Identifier</a>&gt;</h4><a href="#method.parse_package_name" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/file.rs.html#226-275" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an <a href="../../leo_ast/common/identifier/struct.Identifier.html" title="Identifier"><code>Identifier</code></a> AST node if the next tokens represent a valid package name.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_package_path" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_package_path" class="fnname">parse_package_path</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="enum" href="../../leo_ast/imports/package_or_packages/enum.PackageOrPackages.html" title="enum leo_ast::imports::package_or_packages::PackageOrPackages">PackageOrPackages</a>&gt;</h4><a href="#method.parse_package_path" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/file.rs.html#281-299" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a <a href="../../leo_ast/imports/package_or_packages/enum.PackageOrPackages.html" title="PackageOrPackages"><code>PackageOrPackages</code></a> AST node if the next tokens represent a valid package import
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_package_name" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_package_name" class="fnname">parse_package_name</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;Identifier&gt;</h4><a href="#method.parse_package_name" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/file.rs.html#226-275" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an [<code>Identifier</code>] AST node if the next tokens represent a valid package name.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_package_path" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_package_path" class="fnname">parse_package_path</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;PackageOrPackages&gt;</h4><a href="#method.parse_package_path" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/file.rs.html#281-299" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a [<code>PackageOrPackages</code>] AST node if the next tokens represent a valid package import
with accesses.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_import_statement" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_import_statement" class="fnname">parse_import_statement</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="struct" href="../../leo_ast/imports/import/struct.ImportStatement.html" title="struct leo_ast::imports::import::ImportStatement">ImportStatement</a>&gt;</h4><a href="#method.parse_import_statement" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/file.rs.html#304-312" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a <a href="../../leo_ast/imports/import/struct.ImportStatement.html" title="ImportStatement"><code>ImportStatement</code></a> AST node if the next tokens represent an import statement.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_circuit_declaration" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_circuit_declaration" class="fnname">parse_circuit_declaration</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.54.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="enum" href="../../leo_ast/circuits/circuit_member/enum.CircuitMember.html" title="enum leo_ast::circuits::circuit_member::CircuitMember">CircuitMember</a>&gt;&gt;</h4><a href="#method.parse_circuit_declaration" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/file.rs.html#318-356" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a <a href="../../leo_ast/circuits/circuit_member/enum.CircuitMember.html" title="CircuitMember"><code>CircuitMember</code></a> AST node if the next tokens represent a circuit member variable
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_import_statement" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_import_statement" class="fnname">parse_import_statement</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;ImportStatement&gt;</h4><a href="#method.parse_import_statement" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/file.rs.html#304-312" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a [<code>ImportStatement</code>] AST node if the next tokens represent an import statement.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_circuit_declaration" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_circuit_declaration" class="fnname">parse_circuit_declaration</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.54.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;CircuitMember&gt;&gt;</h4><a href="#method.parse_circuit_declaration" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/file.rs.html#318-356" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a [<code>CircuitMember</code>] AST node if the next tokens represent a circuit member variable
or circuit member function.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_member_variable_declaration" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_member_variable_declaration" class="fnname">parse_member_variable_declaration</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self<br>) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a><a class="enum" href="../../leo_ast/circuits/circuit_member/enum.CircuitMember.html" title="enum leo_ast::circuits::circuit_member::CircuitMember">CircuitMember</a>, <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a><a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a>&gt;</h4><a href="#method.parse_member_variable_declaration" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/file.rs.html#361-377" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a <a href="../../leo_ast/circuits/circuit_member/enum.CircuitMember.html" title="CircuitMember"><code>CircuitMember</code></a> AST node if the next tokens represent a circuit member variable.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_member_function_declaration" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_member_function_declaration" class="fnname">parse_member_function_declaration</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="enum" href="../../leo_ast/circuits/circuit_member/enum.CircuitMember.html" title="enum leo_ast::circuits::circuit_member::CircuitMember">CircuitMember</a>&gt;</h4><a href="#method.parse_member_function_declaration" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/file.rs.html#382-399" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a <a href="../../leo_ast/circuits/circuit_member/enum.CircuitMember.html" title="CircuitMember"><code>CircuitMember</code></a> AST node if the next tokens represent a circuit member function.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_circuit" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_circuit" class="fnname">parse_circuit</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a><a class="struct" href="../../leo_ast/common/identifier/struct.Identifier.html" title="struct leo_ast::common::identifier::Identifier">Identifier</a>, <a class="struct" href="../../leo_ast/circuits/circuit/struct.Circuit.html" title="struct leo_ast::circuits::circuit::Circuit">Circuit</a><a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a>&gt;</h4><a href="#method.parse_circuit" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/file.rs.html#405-419" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an [<code>(Identifier, Circuit)</code>] tuple of AST nodes if the next tokens represent a
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_member_variable_declaration" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_member_variable_declaration" class="fnname">parse_member_variable_declaration</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self<br>) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a>CircuitMember, <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a><a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a>&gt;</h4><a href="#method.parse_member_variable_declaration" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/file.rs.html#361-377" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a [<code>CircuitMember</code>] AST node if the next tokens represent a circuit member variable.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_member_function_declaration" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_member_function_declaration" class="fnname">parse_member_function_declaration</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;CircuitMember&gt;</h4><a href="#method.parse_member_function_declaration" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/file.rs.html#382-399" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a [<code>CircuitMember</code>] AST node if the next tokens represent a circuit member function.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_circuit" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_circuit" class="fnname">parse_circuit</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a>Identifier, Circuit<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a>&gt;</h4><a href="#method.parse_circuit" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/file.rs.html#405-419" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an [<code>(Identifier, Circuit)</code>] tuple of AST nodes if the next tokens represent a
circuit name and definition statement.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_function_parameters" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_function_parameters" class="fnname">parse_function_parameters</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="enum" href="../../leo_ast/functions/input/input_variable/enum.FunctionInput.html" title="enum leo_ast::functions::input::input_variable::FunctionInput">FunctionInput</a>&gt;</h4><a href="#method.parse_function_parameters" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/file.rs.html#424-464" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a <a href="../../leo_ast/functions/input/input_variable/enum.FunctionInput.html" title="FunctionInput"><code>FunctionInput</code></a> AST node if the next tokens represent a function parameter.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_function_declaration" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_function_declaration" class="fnname">parse_function_declaration</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a><a class="struct" href="../../leo_ast/common/identifier/struct.Identifier.html" title="struct leo_ast::common::identifier::Identifier">Identifier</a>, <a class="struct" href="../../leo_ast/functions/function/struct.Function.html" title="struct leo_ast::functions::function::Function">Function</a><a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a>&gt;</h4><a href="#method.parse_function_declaration" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/file.rs.html#470-504" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an [<code>(Identifier, Function)</code>] AST node if the next tokens represent a function name
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_function_parameters" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_function_parameters" class="fnname">parse_function_parameters</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;FunctionInput&gt;</h4><a href="#method.parse_function_parameters" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/file.rs.html#424-464" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a [<code>FunctionInput</code>] AST node if the next tokens represent a function parameter.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_function_declaration" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_function_declaration" class="fnname">parse_function_declaration</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a>Identifier, Function<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a>&gt;</h4><a href="#method.parse_function_declaration" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/file.rs.html#470-504" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an [<code>(Identifier, Function)</code>] AST node if the next tokens represent a function name
and function definition.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_global_const_declaration" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_global_const_declaration" class="fnname">parse_global_const_declaration</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self<br>) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a><a class="struct" href="https://doc.rust-lang.org/1.54.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="struct" href="../../leo_ast/statements/definition/struct.DefinitionStatement.html" title="struct leo_ast::statements::definition::DefinitionStatement">DefinitionStatement</a><a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a>&gt;</h4><a href="#method.parse_global_const_declaration" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/file.rs.html#510-520" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an [<code>(String, DefinitionStatement)</code>] AST node if the next tokens represent a global
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_global_const_declaration" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_global_const_declaration" class="fnname">parse_global_const_declaration</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self<br>) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a><a class="struct" href="https://doc.rust-lang.org/1.54.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, DefinitionStatement<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a>&gt;</h4><a href="#method.parse_global_const_declaration" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/file.rs.html#510-520" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an [<code>(String, DefinitionStatement)</code>] AST node if the next tokens represent a global
const definition statement and assignment.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_type_alias" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_type_alias" class="fnname">parse_type_alias</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a><a class="struct" href="../../leo_ast/common/identifier/struct.Identifier.html" title="struct leo_ast::common::identifier::Identifier">Identifier</a>, <a class="struct" href="../../leo_ast/aliases/alias/struct.Alias.html" title="struct leo_ast::aliases::alias::Alias">Alias</a><a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a>&gt;</h4><a href="#method.parse_type_alias" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/file.rs.html#526-541" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an [<code>(String, Alias)</code>] AST node if the next tokens represent a global
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_type_alias" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_type_alias" class="fnname">parse_type_alias</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a>Identifier, Alias<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a>&gt;</h4><a href="#method.parse_type_alias" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/file.rs.html#526-541" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an [<code>(String, Alias)</code>] AST node if the next tokens represent a global
const definition statement and assignment.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-3" class="impl has-srclink"><h3 class="code-header in-band">impl <a class="struct" href="context/struct.ParserContext.html" title="struct leo_parser::parser::context::ParserContext">ParserContext</a></h3><a href="#impl-3" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/statement.rs.html#39-358" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.construct_assignee_access" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.construct_assignee_access" class="fnname">construct_assignee_access</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;expr: <a class="enum" href="../../leo_ast/expression/enum.Expression.html" title="enum leo_ast::expression::Expression">Expression</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;accesses: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.54.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="enum" href="../../leo_ast/statements/assign/assignee/enum.AssigneeAccess.html" title="enum leo_ast::statements::assign::assignee::AssigneeAccess">AssigneeAccess</a>&gt;<br>) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="struct" href="../../leo_ast/common/identifier/struct.Identifier.html" title="struct leo_ast::common::identifier::Identifier">Identifier</a>&gt;</h4><a href="#method.construct_assignee_access" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/statement.rs.html#44-70" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an <a href="../../leo_ast/common/identifier/struct.Identifier.html" title="Identifier"><code>Identifier</code></a> AST node if the given <a href="../../leo_ast/expression/enum.Expression.html" title="Expression"><code>Expression</code></a> AST node evaluates to an
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-3" class="impl has-srclink"><h3 class="code-header in-band">impl <a class="struct" href="context/struct.ParserContext.html" title="struct leo_parser::parser::context::ParserContext">ParserContext</a></h3><a href="#impl-3" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/statement.rs.html#39-358" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.construct_assignee_access" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.construct_assignee_access" class="fnname">construct_assignee_access</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;expr: Expression, <br>&nbsp;&nbsp;&nbsp;&nbsp;accesses: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.54.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;AssigneeAccess&gt;<br>) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;Identifier&gt;</h4><a href="#method.construct_assignee_access" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/statement.rs.html#44-70" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an [<code>Identifier</code>] AST node if the given [<code>Expression</code>] AST node evaluates to an
identifier access. The access is stored in the given accesses.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.construct_assignee" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.construct_assignee" class="fnname">construct_assignee</a>(expr: <a class="enum" href="../../leo_ast/expression/enum.Expression.html" title="enum leo_ast::expression::Expression">Expression</a>) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="struct" href="../../leo_ast/statements/assign/assignee/struct.Assignee.html" title="struct leo_ast::statements::assign::assignee::Assignee">Assignee</a>&gt;</h4><a href="#method.construct_assignee" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/statement.rs.html#75-85" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an <a href="../../leo_ast/statements/assign/assignee/struct.Assignee.html" title="Assignee"><code>Assignee</code></a> AST node from the given <a href="../../leo_ast/expression/enum.Expression.html" title="Expression"><code>Expression</code></a> AST node with accesses.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_statement" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_statement" class="fnname">parse_statement</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="enum" href="../../leo_ast/statements/statement/enum.Statement.html" title="enum leo_ast::statements::statement::Statement">Statement</a>&gt;</h4><a href="#method.parse_statement" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/statement.rs.html#90-100" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a <a href="../../leo_ast/statements/statement/enum.Statement.html" title="Statement"><code>Statement</code></a> AST node if the next tokens represent a statement.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_assign_statement" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_assign_statement" class="fnname">parse_assign_statement</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="enum" href="../../leo_ast/statements/statement/enum.Statement.html" title="enum leo_ast::statements::statement::Statement">Statement</a>&gt;</h4><a href="#method.parse_assign_statement" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/statement.rs.html#105-142" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a <a href="../../leo_ast/statements/block/struct.Block.html" title="Block"><code>Block</code></a> AST node if the next tokens represent a assign, or expression statement.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_block" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_block" class="fnname">parse_block</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="struct" href="../../leo_ast/statements/block/struct.Block.html" title="struct leo_ast::statements::block::Block">Block</a>&gt;</h4><a href="#method.parse_block" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/statement.rs.html#147-164" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a <a href="../../leo_ast/statements/block/struct.Block.html" title="Block"><code>Block</code></a> AST node if the next tokens represent a block of statements.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_return_statement" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_return_statement" class="fnname">parse_return_statement</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="struct" href="../../leo_ast/statements/return_statement/struct.ReturnStatement.html" title="struct leo_ast::statements::return_statement::ReturnStatement">ReturnStatement</a>&gt;</h4><a href="#method.parse_return_statement" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/statement.rs.html#169-178" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a <a href="../../leo_ast/statements/return_statement/struct.ReturnStatement.html" title="ReturnStatement"><code>ReturnStatement</code></a> AST node if the next tokens represent a return statement.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_conditional_statement" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_conditional_statement" class="fnname">parse_conditional_statement</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="struct" href="../../leo_ast/statements/conditional/struct.ConditionalStatement.html" title="struct leo_ast::statements::conditional::ConditionalStatement">ConditionalStatement</a>&gt;</h4><a href="#method.parse_conditional_statement" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/statement.rs.html#183-207" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a <a href="../../leo_ast/statements/conditional/struct.ConditionalStatement.html" title="ConditionalStatement"><code>ConditionalStatement</code></a> AST node if the next tokens represent a conditional statement.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_loop_statement" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_loop_statement" class="fnname">parse_loop_statement</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="struct" href="../../leo_ast/statements/iteration/struct.IterationStatement.html" title="struct leo_ast::statements::iteration::IterationStatement">IterationStatement</a>&gt;</h4><a href="#method.parse_loop_statement" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/statement.rs.html#212-232" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an <a href="../../leo_ast/statements/iteration/struct.IterationStatement.html" title="IterationStatement"><code>IterationStatement</code></a> AST node if the next tokens represent an iteration statement.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_console_args" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_console_args" class="fnname">parse_console_args</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="struct" href="../../leo_ast/statements/console/console_args/struct.ConsoleArgs.html" title="struct leo_ast::statements::console::console_args::ConsoleArgs">ConsoleArgs</a>&gt;</h4><a href="#method.parse_console_args" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/statement.rs.html#237-265" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a <a href="../../leo_ast/statements/console/console_args/struct.ConsoleArgs.html" title="ConsoleArgs"><code>ConsoleArgs</code></a> AST node if the next tokens represent a formatted string.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_console_statement" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_console_statement" class="fnname">parse_console_statement</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="struct" href="../../leo_ast/statements/console/console_statement/struct.ConsoleStatement.html" title="struct leo_ast::statements::console::console_statement::ConsoleStatement">ConsoleStatement</a>&gt;</h4><a href="#method.parse_console_statement" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/statement.rs.html#270-293" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a <a href="../../leo_ast/statements/console/console_statement/struct.ConsoleStatement.html" title="ConsoleStatement"><code>ConsoleStatement</code></a> AST node if the next tokens represent a console statement.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_variable_name" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_variable_name" class="fnname">parse_variable_name</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;span: &amp;<a class="struct" href="../tokenizer/lexer/struct.SpannedToken.html" title="struct leo_parser::tokenizer::lexer::SpannedToken">SpannedToken</a><br>) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="struct" href="../../leo_ast/statements/definition/variable_name/struct.VariableName.html" title="struct leo_ast::statements::definition::variable_name::VariableName">VariableName</a>&gt;</h4><a href="#method.parse_variable_name" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/statement.rs.html#299-311" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a <a href="../../leo_ast/statements/definition/variable_name/struct.VariableName.html" title="VariableName"><code>VariableName</code></a> AST node if the next tokens represent a variable name with
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.construct_assignee" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.construct_assignee" class="fnname">construct_assignee</a>(expr: Expression) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;Assignee&gt;</h4><a href="#method.construct_assignee" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/statement.rs.html#75-85" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an [<code>Assignee</code>] AST node from the given [<code>Expression</code>] AST node with accesses.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_statement" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_statement" class="fnname">parse_statement</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;Statement&gt;</h4><a href="#method.parse_statement" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/statement.rs.html#90-100" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a [<code>Statement</code>] AST node if the next tokens represent a statement.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_assign_statement" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_assign_statement" class="fnname">parse_assign_statement</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;Statement&gt;</h4><a href="#method.parse_assign_statement" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/statement.rs.html#105-142" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a [<code>Block</code>] AST node if the next tokens represent a assign, or expression statement.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_block" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_block" class="fnname">parse_block</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;Block&gt;</h4><a href="#method.parse_block" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/statement.rs.html#147-164" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a [<code>Block</code>] AST node if the next tokens represent a block of statements.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_return_statement" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_return_statement" class="fnname">parse_return_statement</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;ReturnStatement&gt;</h4><a href="#method.parse_return_statement" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/statement.rs.html#169-178" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a [<code>ReturnStatement</code>] AST node if the next tokens represent a return statement.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_conditional_statement" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_conditional_statement" class="fnname">parse_conditional_statement</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;ConditionalStatement&gt;</h4><a href="#method.parse_conditional_statement" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/statement.rs.html#183-207" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a [<code>ConditionalStatement</code>] AST node if the next tokens represent a conditional statement.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_loop_statement" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_loop_statement" class="fnname">parse_loop_statement</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;IterationStatement&gt;</h4><a href="#method.parse_loop_statement" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/statement.rs.html#212-232" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an [<code>IterationStatement</code>] AST node if the next tokens represent an iteration statement.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_console_args" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_console_args" class="fnname">parse_console_args</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;ConsoleArgs&gt;</h4><a href="#method.parse_console_args" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/statement.rs.html#237-265" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a [<code>ConsoleArgs</code>] AST node if the next tokens represent a formatted string.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_console_statement" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_console_statement" class="fnname">parse_console_statement</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;ConsoleStatement&gt;</h4><a href="#method.parse_console_statement" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/statement.rs.html#270-293" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a [<code>ConsoleStatement</code>] AST node if the next tokens represent a console statement.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_variable_name" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_variable_name" class="fnname">parse_variable_name</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;span: &amp;<a class="struct" href="../tokenizer/lexer/struct.SpannedToken.html" title="struct leo_parser::tokenizer::lexer::SpannedToken">SpannedToken</a><br>) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;VariableName&gt;</h4><a href="#method.parse_variable_name" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/statement.rs.html#299-311" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a [<code>VariableName</code>] AST node if the next tokens represent a variable name with
valid keywords.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_definition_statement" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_definition_statement" class="fnname">parse_definition_statement</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="struct" href="../../leo_ast/statements/definition/struct.DefinitionStatement.html" title="struct leo_ast::statements::definition::DefinitionStatement">DefinitionStatement</a>&gt;</h4><a href="#method.parse_definition_statement" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/statement.rs.html#316-357" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a <a href="../../leo_ast/statements/definition/struct.DefinitionStatement.html" title="DefinitionStatement"><code>DefinitionStatement</code></a> AST node if the next tokens represent a definition statement.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-4" class="impl has-srclink"><h3 class="code-header in-band">impl <a class="struct" href="context/struct.ParserContext.html" title="struct leo_parser::parser::context::ParserContext">ParserContext</a></h3><a href="#impl-4" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/type_.rs.html#38-129" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.token_to_int_type" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.token_to_int_type" class="fnname">token_to_int_type</a>(token: <a class="enum" href="../tokenizer/token/enum.Token.html" title="enum leo_parser::tokenizer::token::Token">Token</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="../../leo_ast/types/integer_type/enum.IntegerType.html" title="enum leo_ast::types::integer_type::IntegerType">IntegerType</a>&gt;</h4><a href="#method.token_to_int_type" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/type_.rs.html#42-56" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a <a href="../../leo_ast/types/integer_type/enum.IntegerType.html" title="IntegerType"><code>IntegerType</code></a> AST node if the given token is a supported integer type, or <a href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html#variant.None" title="None"><code>None</code></a>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_array_dimensions" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_array_dimensions" class="fnname">parse_array_dimensions</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="struct" href="../../leo_ast/common/array_dimensions/struct.ArrayDimensions.html" title="struct leo_ast::common::array_dimensions::ArrayDimensions">ArrayDimensions</a>&gt;</h4><a href="#method.parse_array_dimensions" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/type_.rs.html#61-81" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an <a href="../../leo_ast/common/array_dimensions/struct.ArrayDimensions.html" title="ArrayDimensions"><code>ArrayDimensions</code></a> AST node if the next tokens represent dimensions for an array type.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_type" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_type" class="fnname">parse_type</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a><a class="enum" href="../../leo_ast/types/type_/enum.Type.html" title="enum leo_ast::types::type_::Type">Type</a>, <a class="struct" href="../../leo_errors/common/span/struct.Span.html" title="struct leo_errors::common::span::Span">Span</a><a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a>&gt;</h4><a href="#method.parse_type" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/type_.rs.html#87-128" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a [<code>(Type, Span)</code>] tuple of AST nodes if the next token represents a type. Also
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_definition_statement" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_definition_statement" class="fnname">parse_definition_statement</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;DefinitionStatement&gt;</h4><a href="#method.parse_definition_statement" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/statement.rs.html#316-357" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a [<code>DefinitionStatement</code>] AST node if the next tokens represent a definition statement.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-4" class="impl has-srclink"><h3 class="code-header in-band">impl <a class="struct" href="context/struct.ParserContext.html" title="struct leo_parser::parser::context::ParserContext">ParserContext</a></h3><a href="#impl-4" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/type_.rs.html#38-129" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.token_to_int_type" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.token_to_int_type" class="fnname">token_to_int_type</a>(token: <a class="enum" href="../tokenizer/token/enum.Token.html" title="enum leo_parser::tokenizer::token::Token">Token</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;IntegerType&gt;</h4><a href="#method.token_to_int_type" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/type_.rs.html#42-56" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a [<code>IntegerType</code>] AST node if the given token is a supported integer type, or <a href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html#variant.None" title="None"><code>None</code></a>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_array_dimensions" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_array_dimensions" class="fnname">parse_array_dimensions</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;ArrayDimensions&gt;</h4><a href="#method.parse_array_dimensions" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/type_.rs.html#61-81" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns an [<code>ArrayDimensions</code>] AST node if the next tokens represent dimensions for an array type.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.parse_type" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.parse_type" class="fnname">parse_type</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/type.Result.html" title="type leo_errors::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a>Type, <a class="struct" href="../../leo_errors/common/span/struct.Span.html" title="struct leo_errors::common::span::Span">Span</a><a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a>&gt;</h4><a href="#method.parse_type" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/type_.rs.html#87-128" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a [<code>(Type, Span)</code>] tuple of AST nodes if the next token represents a type. Also
returns the span of the parsed token.</p>
</div></details></div></details><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Iterator" class="impl has-srclink"><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="context/struct.ParserContext.html" title="struct leo_parser::parser::context::ParserContext">ParserContext</a></h3><a href="#impl-Iterator" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/context.rs.html#33-39" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Item" class="type trait-impl has-srclink"><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.54.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="type">Item</a> = <a class="struct" href="../tokenizer/lexer/struct.SpannedToken.html" title="struct leo_parser::tokenizer::lexer::SpannedToken">SpannedToken</a></h4><a href="#associatedtype.Item" class="anchor"></a></div></summary><div class='docblock'><p>The type of the elements being iterated over.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.next" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/iter/traits/iterator/trait.Iterator.html#tymethod.next" class="fnname">next</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../tokenizer/lexer/struct.SpannedToken.html" title="struct leo_parser::tokenizer::lexer::SpannedToken">SpannedToken</a>&gt;</h4><a href="#method.next" class="anchor"></a><a class="srclink" href="../../src/leo_parser/parser/context.rs.html#36-38" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Advances the iterator and returns the next value. <a href="https://doc.rust-lang.org/1.54.0/core/iter/traits/iterator/trait.Iterator.html#tymethod.next">Read more</a></p>

View File

@ -10,7 +10,7 @@
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Debug" class="impl has-srclink"><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="enum" href="enum.Char.html" title="enum leo_parser::tokenizer::token::Char">Char</a></h3><a href="#impl-Debug" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/tokenizer/token.rs.html#21" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.fmt" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.54.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/1.54.0/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4><a href="#method.fmt" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/tokenizer/token.rs.html#21" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.54.0/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Deserialize%3C%27de%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;'de&gt; <a class="trait" href="https://docs.rs/serde/1.0.128/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a>&lt;'de&gt; for <a class="enum" href="enum.Char.html" title="enum leo_parser::tokenizer::token::Char">Char</a></h3><a href="#impl-Deserialize%3C%27de%3E" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/tokenizer/token.rs.html#21" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://docs.rs/serde/1.0.128/serde/de/trait.Deserialize.html#tymethod.deserialize" class="fnname">deserialize</a>&lt;__D&gt;(__deserializer: __D) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, __D::<a class="type" href="https://docs.rs/serde/1.0.128/serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;__D: <a class="trait" href="https://docs.rs/serde/1.0.128/serde/de/trait.Deserializer.html" title="trait serde::de::Deserializer">Deserializer</a>&lt;'de&gt;,&nbsp;</span></h4><a href="#method.deserialize" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/tokenizer/token.rs.html#21" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Deserialize this value from the given Serde deserializer. <a href="https://docs.rs/serde/1.0.128/serde/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Display" class="impl has-srclink"><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> for <a class="enum" href="enum.Char.html" title="enum leo_parser::tokenizer::token::Char">Char</a></h3><a href="#impl-Display" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/tokenizer/token.rs.html#37-44" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.fmt-1" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/fmt/trait.Display.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.54.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/1.54.0/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4><a href="#method.fmt-1" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/tokenizer/token.rs.html#38-43" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.54.0/core/fmt/trait.Display.html#tymethod.fmt">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Into%3CChar%3E" class="impl has-srclink"><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="enum" href="../../../leo_ast/chars/char_value/enum.Char.html" title="enum leo_ast::chars::char_value::Char">Char</a>&gt; for <a class="enum" href="enum.Char.html" title="enum leo_parser::tokenizer::token::Char">Char</a></h3><a href="#impl-Into%3CChar%3E" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/tokenizer/token.rs.html#28-35" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.into" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/convert/trait.Into.html#tymethod.into" class="fnname">into</a>(self) -&gt; <a class="enum" href="../../../leo_ast/chars/char_value/enum.Char.html" title="enum leo_ast::chars::char_value::Char">Char</a></h4><a href="#method.into" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/tokenizer/token.rs.html#29-34" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the conversion.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Into%3CChar%3E" class="impl has-srclink"><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;Char&gt; for <a class="enum" href="enum.Char.html" title="enum leo_parser::tokenizer::token::Char">Char</a></h3><a href="#impl-Into%3CChar%3E" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/tokenizer/token.rs.html#28-35" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.into" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/convert/trait.Into.html#tymethod.into" class="fnname">into</a>(self) -&gt; Char</h4><a href="#method.into" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/tokenizer/token.rs.html#29-34" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the conversion.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-PartialEq%3CChar%3E" class="impl has-srclink"><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>&lt;<a class="enum" href="enum.Char.html" title="enum leo_parser::tokenizer::token::Char">Char</a>&gt; for <a class="enum" href="enum.Char.html" title="enum leo_parser::tokenizer::token::Char">Char</a></h3><a href="#impl-PartialEq%3CChar%3E" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/tokenizer/token.rs.html#21" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.eq" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/cmp/trait.PartialEq.html#tymethod.eq" class="fnname">eq</a>(&amp;self, other: &amp;<a class="enum" href="enum.Char.html" title="enum leo_parser::tokenizer::token::Char">Char</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a></h4><a href="#method.eq" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/tokenizer/token.rs.html#21" title="goto source code">[src]</a></div></summary><div class='docblock'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used
by <code>==</code>. <a href="https://doc.rust-lang.org/1.54.0/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.ne" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/cmp/trait.PartialEq.html#method.ne" class="fnname">ne</a>(&amp;self, other: &amp;<a class="enum" href="enum.Char.html" title="enum leo_parser::tokenizer::token::Char">Char</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a></h4><a href="#method.ne" class="anchor"></a><a class="srclink" href="../../../src/leo_parser/tokenizer/token.rs.html#21" title="goto source code">[src]</a></div></summary><div class='docblock'><p>This method tests for <code>!=</code>.</p>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,3 +1,3 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `emit_errors` fn in crate `leo_test_framework`."><meta name="keywords" content="rust, rustlang, rust-lang, emit_errors"><title>emit_errors in leo_test_framework::error - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">&#9776;</div><a href='../../leo_test_framework/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="../index.html">leo_test_framework</a>::<wbr><a href="index.html">error</a></h2><div id="sidebar-vars" data-name="emit_errors" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img src="../../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img src="../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">leo_test_framework</a>::<wbr><a href="index.html">error</a>::<wbr><a class="fn" href="#">emit_errors</a><button id="copy-path" onclick="copy_path(this)" title="copy path"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item import" title="Copy item import to clipboard"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span><a class="srclink" href="../../src/leo_test_framework/error.rs.html#84-126" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn emit_errors(<br>&nbsp;&nbsp;&nbsp;&nbsp;output: <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;&amp;<a class="enum" href="https://docs.rs/serde_yaml/0.8.19/serde_yaml/value/enum.Value.html" title="enum serde_yaml::value::Value">Value</a>, &amp;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.str.html">str</a>&gt;, <br>&nbsp;&nbsp;&nbsp;&nbsp;mode: &amp;<a class="enum" href="../test/enum.TestExpectationMode.html" title="enum leo_test_framework::test::TestExpectationMode">TestExpectationMode</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;expected_output: <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="https://docs.rs/serde_yaml/0.8.19/serde_yaml/value/enum.Value.html" title="enum serde_yaml::value::Value">Value</a>&gt;, <br>&nbsp;&nbsp;&nbsp;&nbsp;test_index: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.usize.html">usize</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="enum.TestError.html" title="enum leo_test_framework::error::TestError">TestError</a>&gt;</pre></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="leo_test_framework" data-search-index-js="../../search-index.js" data-search-js="../../search.js"></div><script src="../../main.js"></script></body></html>
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">&#9776;</div><a href='../../leo_test_framework/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="../index.html">leo_test_framework</a>::<wbr><a href="index.html">error</a></h2><div id="sidebar-vars" data-name="emit_errors" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img src="../../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img src="../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">leo_test_framework</a>::<wbr><a href="index.html">error</a>::<wbr><a class="fn" href="#">emit_errors</a><button id="copy-path" onclick="copy_path(this)" title="copy path"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item import" title="Copy item import to clipboard"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span><a class="srclink" href="../../src/leo_test_framework/error.rs.html#84-126" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn emit_errors(<br>&nbsp;&nbsp;&nbsp;&nbsp;output: <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;&amp;<a class="enum" href="https://docs.rs/serde_yaml/0.8.20/serde_yaml/value/enum.Value.html" title="enum serde_yaml::value::Value">Value</a>, &amp;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.str.html">str</a>&gt;, <br>&nbsp;&nbsp;&nbsp;&nbsp;mode: &amp;<a class="enum" href="../test/enum.TestExpectationMode.html" title="enum leo_test_framework::test::TestExpectationMode">TestExpectationMode</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;expected_output: <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="https://docs.rs/serde_yaml/0.8.20/serde_yaml/value/enum.Value.html" title="enum serde_yaml::value::Value">Value</a>&gt;, <br>&nbsp;&nbsp;&nbsp;&nbsp;test_index: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.usize.html">usize</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="enum.TestError.html" title="enum leo_test_framework::error::TestError">TestError</a>&gt;</pre></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="leo_test_framework" data-search-index-js="../../search-index.js" data-search-js="../../search.js"></div><script src="../../main.js"></script></body></html>

View File

@ -3,9 +3,9 @@
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc struct"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">&#9776;</div><a href='../../leo_test_framework/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><h2 class="location">Struct TestExpectation</h2><div class="sidebar-elems"><div class="block items"><h3 class="sidebar-title"><a href="#fields">Fields</a></h3><div class="sidebar-links"><a href="#structfield.expectation">expectation</a><a href="#structfield.namespace">namespace</a><a href="#structfield.outputs">outputs</a></div><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><div class="sidebar-links"><a href="#impl-Clone">Clone</a><a href="#impl-Deserialize%3C%27de%3E">Deserialize&lt;&#39;de&gt;</a><a href="#impl-Serialize">Serialize</a></div><h3 class="sidebar-title"><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><h3 class="sidebar-title"><a href="#blanket-implementations">Blanket Implementations</a></h3><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow&lt;T&gt;</a><a href="#impl-BorrowMut%3CT%3E">BorrowMut&lt;T&gt;</a><a href="#impl-Conv">Conv</a><a href="#impl-DeserializeOwned">DeserializeOwned</a><a href="#impl-FmtForward">FmtForward</a><a href="#impl-From%3CT%3E">From&lt;T&gt;</a><a href="#impl-Instrument">Instrument</a><a href="#impl-Into%3CU%3E">Into&lt;U&gt;</a><a href="#impl-Pipe">Pipe</a><a href="#impl-PipeAsRef">PipeAsRef</a><a href="#impl-PipeBorrow">PipeBorrow</a><a href="#impl-PipeDeref">PipeDeref</a><a href="#impl-PipeRef">PipeRef</a><a href="#impl-Pointable">Pointable</a><a href="#impl-Same%3CT%3E">Same&lt;T&gt;</a><a href="#impl-Tap">Tap</a><a href="#impl-TapAsRef%3CU%3E">TapAsRef&lt;U&gt;</a><a href="#impl-TapBorrow%3CU%3E">TapBorrow&lt;U&gt;</a><a href="#impl-TapDeref">TapDeref</a><a href="#impl-ToOwned">ToOwned</a><a href="#impl-TryConv">TryConv</a><a href="#impl-TryFrom%3CU%3E">TryFrom&lt;U&gt;</a><a href="#impl-TryInto%3CU%3E">TryInto&lt;U&gt;</a><a href="#impl-VZip%3CV%3E">VZip&lt;V&gt;</a></div></div><h2 class="location">Other items in<br><a href="../index.html">leo_test_framework</a>::<wbr><a href="index.html">output</a></h2><div id="sidebar-vars" data-name="TestExpectation" data-ty="struct" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img src="../../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img src="../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Struct <a href="../index.html">leo_test_framework</a>::<wbr><a href="index.html">output</a>::<wbr><a class="struct" href="#">TestExpectation</a><button id="copy-path" onclick="copy_path(this)" title="copy path"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item import" title="Copy item import to clipboard"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span><a class="srclink" href="../../src/leo_test_framework/output.rs.html#21-25" title="goto source code">[src]</a></span></h1><div class="docblock type-decl"><pre class="rust struct">pub struct TestExpectation {
pub namespace: <a class="struct" href="https://doc.rust-lang.org/1.54.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>,
pub expectation: <a class="enum" href="../test/enum.TestExpectationMode.html" title="enum leo_test_framework::test::TestExpectationMode">TestExpectationMode</a>,
pub outputs: <a class="struct" href="https://doc.rust-lang.org/1.54.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="enum" href="https://docs.rs/serde_yaml/0.8.19/serde_yaml/value/enum.Value.html" title="enum serde_yaml::value::Value">Value</a>&gt;,
pub outputs: <a class="struct" href="https://doc.rust-lang.org/1.54.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="enum" href="https://docs.rs/serde_yaml/0.8.20/serde_yaml/value/enum.Value.html" title="enum serde_yaml::value::Value">Value</a>&gt;,
}</pre></div><h2 id="fields" class="fields small-section-header">
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.namespace" class="structfield small-section-header"><a href="#structfield.namespace" class="anchor field"></a><code>namespace: <a class="struct" href="https://doc.rust-lang.org/1.54.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code></span><span id="structfield.expectation" class="structfield small-section-header"><a href="#structfield.expectation" class="anchor field"></a><code>expectation: <a class="enum" href="../test/enum.TestExpectationMode.html" title="enum leo_test_framework::test::TestExpectationMode">TestExpectationMode</a></code></span><span id="structfield.outputs" class="structfield small-section-header"><a href="#structfield.outputs" class="anchor field"></a><code>outputs: <a class="struct" href="https://doc.rust-lang.org/1.54.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="enum" href="https://docs.rs/serde_yaml/0.8.19/serde_yaml/value/enum.Value.html" title="enum serde_yaml::value::Value">Value</a>&gt;</code></span><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Clone" class="impl has-srclink"><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.TestExpectation.html" title="struct leo_test_framework::output::TestExpectation">TestExpectation</a></h3><a href="#impl-Clone" class="anchor"></a><a class="srclink" href="../../src/leo_test_framework/output.rs.html#20" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.clone" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&amp;self) -&gt; <a class="struct" href="struct.TestExpectation.html" title="struct leo_test_framework::output::TestExpectation">TestExpectation</a></h4><a href="#method.clone" class="anchor"></a><a class="srclink" href="../../src/leo_test_framework/output.rs.html#20" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.54.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.namespace" class="structfield small-section-header"><a href="#structfield.namespace" class="anchor field"></a><code>namespace: <a class="struct" href="https://doc.rust-lang.org/1.54.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code></span><span id="structfield.expectation" class="structfield small-section-header"><a href="#structfield.expectation" class="anchor field"></a><code>expectation: <a class="enum" href="../test/enum.TestExpectationMode.html" title="enum leo_test_framework::test::TestExpectationMode">TestExpectationMode</a></code></span><span id="structfield.outputs" class="structfield small-section-header"><a href="#structfield.outputs" class="anchor field"></a><code>outputs: <a class="struct" href="https://doc.rust-lang.org/1.54.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="enum" href="https://docs.rs/serde_yaml/0.8.20/serde_yaml/value/enum.Value.html" title="enum serde_yaml::value::Value">Value</a>&gt;</code></span><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Clone" class="impl has-srclink"><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.TestExpectation.html" title="struct leo_test_framework::output::TestExpectation">TestExpectation</a></h3><a href="#impl-Clone" class="anchor"></a><a class="srclink" href="../../src/leo_test_framework/output.rs.html#20" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.clone" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&amp;self) -&gt; <a class="struct" href="struct.TestExpectation.html" title="struct leo_test_framework::output::TestExpectation">TestExpectation</a></h4><a href="#method.clone" class="anchor"></a><a class="srclink" href="../../src/leo_test_framework/output.rs.html#20" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.54.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.clone_from" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&amp;mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self)</h4><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a href="#method.clone_from" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/1.54.0/src/core/clone.rs.html#130" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.54.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Deserialize%3C%27de%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;'de&gt; <a class="trait" href="https://docs.rs/serde/1.0.128/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a>&lt;'de&gt; for <a class="struct" href="struct.TestExpectation.html" title="struct leo_test_framework::output::TestExpectation">TestExpectation</a></h3><a href="#impl-Deserialize%3C%27de%3E" class="anchor"></a><a class="srclink" href="../../src/leo_test_framework/output.rs.html#20" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://docs.rs/serde/1.0.128/serde/de/trait.Deserialize.html#tymethod.deserialize" class="fnname">deserialize</a>&lt;__D&gt;(__deserializer: __D) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, __D::<a class="type" href="https://docs.rs/serde/1.0.128/serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;__D: <a class="trait" href="https://docs.rs/serde/1.0.128/serde/de/trait.Deserializer.html" title="trait serde::de::Deserializer">Deserializer</a>&lt;'de&gt;,&nbsp;</span></h4><a href="#method.deserialize" class="anchor"></a><a class="srclink" href="../../src/leo_test_framework/output.rs.html#20" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Deserialize this value from the given Serde deserializer. <a href="https://docs.rs/serde/1.0.128/serde/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Serialize" class="impl has-srclink"><h3 class="code-header in-band">impl <a class="trait" href="https://docs.rs/serde/1.0.128/serde/ser/trait.Serialize.html" title="trait serde::ser::Serialize">Serialize</a> for <a class="struct" href="struct.TestExpectation.html" title="struct leo_test_framework::output::TestExpectation">TestExpectation</a></h3><a href="#impl-Serialize" class="anchor"></a><a class="srclink" href="../../src/leo_test_framework/output.rs.html#20" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.serialize" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://docs.rs/serde/1.0.128/serde/ser/trait.Serialize.html#tymethod.serialize" class="fnname">serialize</a>&lt;__S&gt;(&amp;self, __serializer: __S) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;__S::<a class="type" href="https://docs.rs/serde/1.0.128/serde/ser/trait.Serializer.html#associatedtype.Ok" title="type serde::ser::Serializer::Ok">Ok</a>, __S::<a class="type" href="https://docs.rs/serde/1.0.128/serde/ser/trait.Serializer.html#associatedtype.Error" title="type serde::ser::Serializer::Error">Error</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;__S: <a class="trait" href="https://docs.rs/serde/1.0.128/serde/ser/trait.Serializer.html" title="trait serde::ser::Serializer">Serializer</a>,&nbsp;</span></h4><a href="#method.serialize" class="anchor"></a><a class="srclink" href="../../src/leo_test_framework/output.rs.html#20" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Serialize this value into the given Serde serializer. <a href="https://docs.rs/serde/1.0.128/serde/ser/trait.Serialize.html#tymethod.serialize">Read more</a></p>

File diff suppressed because one or more lines are too long

View File

@ -2,5 +2,5 @@
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">&#9776;</div><a href='../../leo_test_framework/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><h2 class="location">Trait Namespace</h2><div class="sidebar-elems"><div class="block items"><h3 class="sidebar-title"><a href="#required-methods">Required Methods</a></h3><div class="sidebar-links"><a href="#tymethod.parse_type">parse_type</a><a href="#tymethod.run_test">run_test</a></div><h3 class="sidebar-title"><a href="#implementors">Implementors</a></h3></div><h2 class="location">Other items in<br><a href="../index.html">leo_test_framework</a>::<wbr><a href="index.html">runner</a></h2><div id="sidebar-vars" data-name="Namespace" data-ty="trait" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img src="../../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img src="../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Trait <a href="../index.html">leo_test_framework</a>::<wbr><a href="index.html">runner</a>::<wbr><a class="trait" href="#">Namespace</a><button id="copy-path" onclick="copy_path(this)" title="copy path"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item import" title="Copy item import to clipboard"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span><a class="srclink" href="../../src/leo_test_framework/runner.rs.html#39-43" title="goto source code">[src]</a></span></h1><div class="docblock type-decl"><pre class="rust trait">pub trait Namespace {
fn <a href="#tymethod.parse_type" class="fnname">parse_type</a>(&amp;self) -&gt; <a class="enum" href="enum.ParseType.html" title="enum leo_test_framework::runner::ParseType">ParseType</a>;
<div class="item-spacer"></div> fn <a href="#tymethod.run_test" class="fnname">run_test</a>(&amp;self, test: <a class="struct" href="struct.Test.html" title="struct leo_test_framework::runner::Test">Test</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="enum" href="https://docs.rs/serde_yaml/0.8.19/serde_yaml/value/enum.Value.html" title="enum serde_yaml::value::Value">Value</a>, <a class="struct" href="https://doc.rust-lang.org/1.54.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;;
}</pre></div><h2 id="required-methods" class="small-section-header">Required methods<a href="#required-methods" class="anchor"></a></h2><div class="methods"><div id="tymethod.parse_type" class="method has-srclink"><h4 class="code-header">fn <a href="#tymethod.parse_type" class="fnname">parse_type</a>(&amp;self) -&gt; <a class="enum" href="enum.ParseType.html" title="enum leo_test_framework::runner::ParseType">ParseType</a></h4><a class="srclink" href="../../src/leo_test_framework/runner.rs.html#40" title="goto source code">[src]</a></div><div id="tymethod.run_test" class="method has-srclink"><h4 class="code-header">fn <a href="#tymethod.run_test" class="fnname">run_test</a>(&amp;self, test: <a class="struct" href="struct.Test.html" title="struct leo_test_framework::runner::Test">Test</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="enum" href="https://docs.rs/serde_yaml/0.8.19/serde_yaml/value/enum.Value.html" title="enum serde_yaml::value::Value">Value</a>, <a class="struct" href="https://doc.rust-lang.org/1.54.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;</h4><a class="srclink" href="../../src/leo_test_framework/runner.rs.html#42" title="goto source code">[src]</a></div></div><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor"></a></h2><div class="item-list" id="implementors-list"></div><script type="text/javascript" src="../../implementors/leo_test_framework/runner/trait.Namespace.js" async></script></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="leo_test_framework" data-search-index-js="../../search-index.js" data-search-js="../../search.js"></div><script src="../../main.js"></script></body></html>
<div class="item-spacer"></div> fn <a href="#tymethod.run_test" class="fnname">run_test</a>(&amp;self, test: <a class="struct" href="struct.Test.html" title="struct leo_test_framework::runner::Test">Test</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="enum" href="https://docs.rs/serde_yaml/0.8.20/serde_yaml/value/enum.Value.html" title="enum serde_yaml::value::Value">Value</a>, <a class="struct" href="https://doc.rust-lang.org/1.54.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;;
}</pre></div><h2 id="required-methods" class="small-section-header">Required methods<a href="#required-methods" class="anchor"></a></h2><div class="methods"><div id="tymethod.parse_type" class="method has-srclink"><h4 class="code-header">fn <a href="#tymethod.parse_type" class="fnname">parse_type</a>(&amp;self) -&gt; <a class="enum" href="enum.ParseType.html" title="enum leo_test_framework::runner::ParseType">ParseType</a></h4><a class="srclink" href="../../src/leo_test_framework/runner.rs.html#40" title="goto source code">[src]</a></div><div id="tymethod.run_test" class="method has-srclink"><h4 class="code-header">fn <a href="#tymethod.run_test" class="fnname">run_test</a>(&amp;self, test: <a class="struct" href="struct.Test.html" title="struct leo_test_framework::runner::Test">Test</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="enum" href="https://docs.rs/serde_yaml/0.8.20/serde_yaml/value/enum.Value.html" title="enum serde_yaml::value::Value">Value</a>, <a class="struct" href="https://doc.rust-lang.org/1.54.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;</h4><a class="srclink" href="../../src/leo_test_framework/runner.rs.html#42" title="goto source code">[src]</a></div></div><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor"></a></h2><div class="item-list" id="implementors-list"></div><script type="text/javascript" src="../../implementors/leo_test_framework/runner/trait.Namespace.js" async></script></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="leo_test_framework" data-search-index-js="../../search-index.js" data-search-js="../../search.js"></div><script src="../../main.js"></script></body></html>

View File

@ -3,9 +3,9 @@
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc struct"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">&#9776;</div><a href='../../leo_test_framework/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><h2 class="location">Struct TestConfig</h2><div class="sidebar-elems"><div class="block items"><h3 class="sidebar-title"><a href="#fields">Fields</a></h3><div class="sidebar-links"><a href="#structfield.expectation">expectation</a><a href="#structfield.extra">extra</a><a href="#structfield.namespace">namespace</a></div><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><div class="sidebar-links"><a href="#impl-Debug">Debug</a><a href="#impl-Deserialize%3C%27de%3E">Deserialize&lt;&#39;de&gt;</a><a href="#impl-Serialize">Serialize</a></div><h3 class="sidebar-title"><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><h3 class="sidebar-title"><a href="#blanket-implementations">Blanket Implementations</a></h3><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow&lt;T&gt;</a><a href="#impl-BorrowMut%3CT%3E">BorrowMut&lt;T&gt;</a><a href="#impl-Conv">Conv</a><a href="#impl-DeserializeOwned">DeserializeOwned</a><a href="#impl-FmtForward">FmtForward</a><a href="#impl-From%3CT%3E">From&lt;T&gt;</a><a href="#impl-Instrument">Instrument</a><a href="#impl-Into%3CU%3E">Into&lt;U&gt;</a><a href="#impl-Pipe">Pipe</a><a href="#impl-PipeAsRef">PipeAsRef</a><a href="#impl-PipeBorrow">PipeBorrow</a><a href="#impl-PipeDeref">PipeDeref</a><a href="#impl-PipeRef">PipeRef</a><a href="#impl-Pointable">Pointable</a><a href="#impl-Same%3CT%3E">Same&lt;T&gt;</a><a href="#impl-Tap">Tap</a><a href="#impl-TapAsRef%3CU%3E">TapAsRef&lt;U&gt;</a><a href="#impl-TapBorrow%3CU%3E">TapBorrow&lt;U&gt;</a><a href="#impl-TapDeref">TapDeref</a><a href="#impl-TryConv">TryConv</a><a href="#impl-TryFrom%3CU%3E">TryFrom&lt;U&gt;</a><a href="#impl-TryInto%3CU%3E">TryInto&lt;U&gt;</a><a href="#impl-VZip%3CV%3E">VZip&lt;V&gt;</a></div></div><h2 class="location">Other items in<br><a href="../index.html">leo_test_framework</a>::<wbr><a href="index.html">test</a></h2><div id="sidebar-vars" data-name="TestConfig" data-ty="struct" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img src="../../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img src="../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Struct <a href="../index.html">leo_test_framework</a>::<wbr><a href="index.html">test</a>::<wbr><a class="struct" href="#">TestConfig</a><button id="copy-path" onclick="copy_path(this)" title="copy path"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item import" title="Copy item import to clipboard"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span><a class="srclink" href="../../src/leo_test_framework/test.rs.html#26-31" title="goto source code">[src]</a></span></h1><div class="docblock type-decl"><pre class="rust struct">pub struct TestConfig {
pub namespace: <a class="struct" href="https://doc.rust-lang.org/1.54.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>,
pub expectation: <a class="enum" href="enum.TestExpectationMode.html" title="enum leo_test_framework::test::TestExpectationMode">TestExpectationMode</a>,
pub extra: <a class="struct" href="https://doc.rust-lang.org/1.54.0/alloc/collections/btree/map/struct.BTreeMap.html" title="struct alloc::collections::btree::map::BTreeMap">BTreeMap</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.54.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="enum" href="https://docs.rs/serde_yaml/0.8.19/serde_yaml/value/enum.Value.html" title="enum serde_yaml::value::Value">Value</a>&gt;,
pub extra: <a class="struct" href="https://doc.rust-lang.org/1.54.0/alloc/collections/btree/map/struct.BTreeMap.html" title="struct alloc::collections::btree::map::BTreeMap">BTreeMap</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.54.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="enum" href="https://docs.rs/serde_yaml/0.8.20/serde_yaml/value/enum.Value.html" title="enum serde_yaml::value::Value">Value</a>&gt;,
}</pre></div><h2 id="fields" class="fields small-section-header">
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.namespace" class="structfield small-section-header"><a href="#structfield.namespace" class="anchor field"></a><code>namespace: <a class="struct" href="https://doc.rust-lang.org/1.54.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code></span><span id="structfield.expectation" class="structfield small-section-header"><a href="#structfield.expectation" class="anchor field"></a><code>expectation: <a class="enum" href="enum.TestExpectationMode.html" title="enum leo_test_framework::test::TestExpectationMode">TestExpectationMode</a></code></span><span id="structfield.extra" class="structfield small-section-header"><a href="#structfield.extra" class="anchor field"></a><code>extra: <a class="struct" href="https://doc.rust-lang.org/1.54.0/alloc/collections/btree/map/struct.BTreeMap.html" title="struct alloc::collections::btree::map::BTreeMap">BTreeMap</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.54.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="enum" href="https://docs.rs/serde_yaml/0.8.19/serde_yaml/value/enum.Value.html" title="enum serde_yaml::value::Value">Value</a>&gt;</code></span><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Debug" class="impl has-srclink"><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.TestConfig.html" title="struct leo_test_framework::test::TestConfig">TestConfig</a></h3><a href="#impl-Debug" class="anchor"></a><a class="srclink" href="../../src/leo_test_framework/test.rs.html#25" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.fmt" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.54.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/1.54.0/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4><a href="#method.fmt" class="anchor"></a><a class="srclink" href="../../src/leo_test_framework/test.rs.html#25" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.54.0/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.namespace" class="structfield small-section-header"><a href="#structfield.namespace" class="anchor field"></a><code>namespace: <a class="struct" href="https://doc.rust-lang.org/1.54.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code></span><span id="structfield.expectation" class="structfield small-section-header"><a href="#structfield.expectation" class="anchor field"></a><code>expectation: <a class="enum" href="enum.TestExpectationMode.html" title="enum leo_test_framework::test::TestExpectationMode">TestExpectationMode</a></code></span><span id="structfield.extra" class="structfield small-section-header"><a href="#structfield.extra" class="anchor field"></a><code>extra: <a class="struct" href="https://doc.rust-lang.org/1.54.0/alloc/collections/btree/map/struct.BTreeMap.html" title="struct alloc::collections::btree::map::BTreeMap">BTreeMap</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.54.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="enum" href="https://docs.rs/serde_yaml/0.8.20/serde_yaml/value/enum.Value.html" title="enum serde_yaml::value::Value">Value</a>&gt;</code></span><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Debug" class="impl has-srclink"><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.TestConfig.html" title="struct leo_test_framework::test::TestConfig">TestConfig</a></h3><a href="#impl-Debug" class="anchor"></a><a class="srclink" href="../../src/leo_test_framework/test.rs.html#25" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.fmt" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.54.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/1.54.0/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4><a href="#method.fmt" class="anchor"></a><a class="srclink" href="../../src/leo_test_framework/test.rs.html#25" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.54.0/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Deserialize%3C%27de%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;'de&gt; <a class="trait" href="https://docs.rs/serde/1.0.128/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a>&lt;'de&gt; for <a class="struct" href="struct.TestConfig.html" title="struct leo_test_framework::test::TestConfig">TestConfig</a></h3><a href="#impl-Deserialize%3C%27de%3E" class="anchor"></a><a class="srclink" href="../../src/leo_test_framework/test.rs.html#25" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://docs.rs/serde/1.0.128/serde/de/trait.Deserialize.html#tymethod.deserialize" class="fnname">deserialize</a>&lt;__D&gt;(__deserializer: __D) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, __D::<a class="type" href="https://docs.rs/serde/1.0.128/serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;__D: <a class="trait" href="https://docs.rs/serde/1.0.128/serde/de/trait.Deserializer.html" title="trait serde::de::Deserializer">Deserializer</a>&lt;'de&gt;,&nbsp;</span></h4><a href="#method.deserialize" class="anchor"></a><a class="srclink" href="../../src/leo_test_framework/test.rs.html#25" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Deserialize this value from the given Serde deserializer. <a href="https://docs.rs/serde/1.0.128/serde/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Serialize" class="impl has-srclink"><h3 class="code-header in-band">impl <a class="trait" href="https://docs.rs/serde/1.0.128/serde/ser/trait.Serialize.html" title="trait serde::ser::Serialize">Serialize</a> for <a class="struct" href="struct.TestConfig.html" title="struct leo_test_framework::test::TestConfig">TestConfig</a></h3><a href="#impl-Serialize" class="anchor"></a><a class="srclink" href="../../src/leo_test_framework/test.rs.html#25" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.serialize" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://docs.rs/serde/1.0.128/serde/ser/trait.Serialize.html#tymethod.serialize" class="fnname">serialize</a>&lt;__S&gt;(&amp;self, __serializer: __S) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;__S::<a class="type" href="https://docs.rs/serde/1.0.128/serde/ser/trait.Serializer.html#associatedtype.Ok" title="type serde::ser::Serializer::Ok">Ok</a>, __S::<a class="type" href="https://docs.rs/serde/1.0.128/serde/ser/trait.Serializer.html#associatedtype.Error" title="type serde::ser::Serializer::Error">Error</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;__S: <a class="trait" href="https://docs.rs/serde/1.0.128/serde/ser/trait.Serializer.html" title="trait serde::ser::Serializer">Serializer</a>,&nbsp;</span></h4><a href="#method.serialize" class="anchor"></a><a class="srclink" href="../../src/leo_test_framework/test.rs.html#25" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Serialize this value into the given Serde serializer. <a href="https://docs.rs/serde/1.0.128/serde/ser/trait.Serialize.html#tymethod.serialize">Read more</a></p>
</div></details></div></details></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><div id="impl-RefUnwindSafe" class="impl has-srclink"><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.54.0/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.TestConfig.html" title="struct leo_test_framework::test::TestConfig">TestConfig</a></h3><a href="#impl-RefUnwindSafe" class="anchor"></a></div><div id="impl-Send" class="impl has-srclink"><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.TestConfig.html" title="struct leo_test_framework::test::TestConfig">TestConfig</a></h3><a href="#impl-Send" class="anchor"></a></div><div id="impl-Sync" class="impl has-srclink"><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.TestConfig.html" title="struct leo_test_framework::test::TestConfig">TestConfig</a></h3><a href="#impl-Sync" class="anchor"></a></div><div id="impl-Unpin" class="impl has-srclink"><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.TestConfig.html" title="struct leo_test_framework::test::TestConfig">TestConfig</a></h3><a href="#impl-Unpin" class="anchor"></a></div><div id="impl-UnwindSafe" class="impl has-srclink"><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.54.0/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.TestConfig.html" title="struct leo_test_framework::test::TestConfig">TestConfig</a></h3><a href="#impl-UnwindSafe" class="anchor"></a></div></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Any" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/1.54.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></h3><a href="#impl-Any" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/1.54.0/src/core/any.rs.html#131-135" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.type_id" class="method trait-impl has-srclink"><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/1.54.0/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.54.0/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4><a href="#method.type_id" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/1.54.0/src/core/any.rs.html#132" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/1.54.0/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>