mentat/docs/apis/rust/syn/enum.Expr.html
2018-06-22 12:08:32 +01:00

371 lines
No EOL
100 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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 `Expr` enum in crate `syn`.">
<meta name="keywords" content="rust, rustlang, rust-lang, Expr">
<title>syn::Expr - 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="../dark.css">
<link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle">
<script src="../storage.js"></script>
</head>
<body class="rustdoc enum">
<!--[if lte IE 8]>
<div class="warning">
This old browser is unsupported and will most likely display funky
things.
</div>
<![endif]-->
<nav class="sidebar">
<div class="sidebar-menu">&#9776;</div>
<p class='location'>Enum Expr</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#variants">Variants</a><div class="sidebar-links"><a href="#variant.Box">Box</a><a href="#variant.InPlace">InPlace</a><a href="#variant.Array">Array</a><a href="#variant.Call">Call</a><a href="#variant.MethodCall">MethodCall</a><a href="#variant.Tuple">Tuple</a><a href="#variant.Binary">Binary</a><a href="#variant.Unary">Unary</a><a href="#variant.Lit">Lit</a><a href="#variant.Cast">Cast</a><a href="#variant.Type">Type</a><a href="#variant.If">If</a><a href="#variant.IfLet">IfLet</a><a href="#variant.While">While</a><a href="#variant.WhileLet">WhileLet</a><a href="#variant.ForLoop">ForLoop</a><a href="#variant.Loop">Loop</a><a href="#variant.Match">Match</a><a href="#variant.Closure">Closure</a><a href="#variant.Unsafe">Unsafe</a><a href="#variant.Block">Block</a><a href="#variant.Assign">Assign</a><a href="#variant.AssignOp">AssignOp</a><a href="#variant.Field">Field</a><a href="#variant.Index">Index</a><a href="#variant.Range">Range</a><a href="#variant.Path">Path</a><a href="#variant.Reference">Reference</a><a href="#variant.Break">Break</a><a href="#variant.Continue">Continue</a><a href="#variant.Return">Return</a><a href="#variant.Macro">Macro</a><a href="#variant.Struct">Struct</a><a href="#variant.Repeat">Repeat</a><a href="#variant.Paren">Paren</a><a href="#variant.Group">Group</a><a href="#variant.Try">Try</a><a href="#variant.Catch">Catch</a><a href="#variant.Yield">Yield</a><a href="#variant.Verbatim">Verbatim</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Synom">Synom</a><a href="#impl-Clone">Clone</a><a href="#impl-From%3CExprBox%3E">From&lt;ExprBox&gt;</a><a href="#impl-From%3CExprInPlace%3E">From&lt;ExprInPlace&gt;</a><a href="#impl-From%3CExprArray%3E">From&lt;ExprArray&gt;</a><a href="#impl-From%3CExprCall%3E">From&lt;ExprCall&gt;</a><a href="#impl-From%3CExprMethodCall%3E">From&lt;ExprMethodCall&gt;</a><a href="#impl-From%3CExprTuple%3E">From&lt;ExprTuple&gt;</a><a href="#impl-From%3CExprBinary%3E">From&lt;ExprBinary&gt;</a><a href="#impl-From%3CExprUnary%3E">From&lt;ExprUnary&gt;</a><a href="#impl-From%3CExprLit%3E">From&lt;ExprLit&gt;</a><a href="#impl-From%3CExprCast%3E">From&lt;ExprCast&gt;</a><a href="#impl-From%3CExprType%3E">From&lt;ExprType&gt;</a><a href="#impl-From%3CExprIf%3E">From&lt;ExprIf&gt;</a><a href="#impl-From%3CExprIfLet%3E">From&lt;ExprIfLet&gt;</a><a href="#impl-From%3CExprWhile%3E">From&lt;ExprWhile&gt;</a><a href="#impl-From%3CExprWhileLet%3E">From&lt;ExprWhileLet&gt;</a><a href="#impl-From%3CExprForLoop%3E">From&lt;ExprForLoop&gt;</a><a href="#impl-From%3CExprLoop%3E">From&lt;ExprLoop&gt;</a><a href="#impl-From%3CExprMatch%3E">From&lt;ExprMatch&gt;</a><a href="#impl-From%3CExprClosure%3E">From&lt;ExprClosure&gt;</a><a href="#impl-From%3CExprUnsafe%3E">From&lt;ExprUnsafe&gt;</a><a href="#impl-From%3CExprBlock%3E">From&lt;ExprBlock&gt;</a><a href="#impl-From%3CExprAssign%3E">From&lt;ExprAssign&gt;</a><a href="#impl-From%3CExprAssignOp%3E">From&lt;ExprAssignOp&gt;</a><a href="#impl-From%3CExprField%3E">From&lt;ExprField&gt;</a><a href="#impl-From%3CExprIndex%3E">From&lt;ExprIndex&gt;</a><a href="#impl-From%3CExprRange%3E">From&lt;ExprRange&gt;</a><a href="#impl-From%3CExprPath%3E">From&lt;ExprPath&gt;</a><a href="#impl-From%3CExprReference%3E">From&lt;ExprReference&gt;</a><a href="#impl-From%3CExprBreak%3E">From&lt;ExprBreak&gt;</a><a href="#impl-From%3CExprContinue%3E">From&lt;ExprContinue&gt;</a><a href="#impl-From%3CExprReturn%3E">From&lt;ExprReturn&gt;</a><a href="#impl-From%3CExprMacro%3E">From&lt;ExprMacro&gt;</a><a href="#impl-From%3CExprStruct%3E">From&lt;ExprStruct&gt;</a><a href="#impl-From%3CExprRepeat%3E">From&lt;ExprRepeat&gt;</a><a href="#impl-From%3CExprParen%3E">From&lt;ExprParen&gt;</a><a href="#impl-From%3CExprGroup%3E">From&lt;ExprGroup&gt;</a><a href="#impl-From%3CExprTry%3E">From&lt;ExprTry&gt;</a><a href="#impl-From%3CExprCatch%3E">From&lt;ExprCatch&gt;</a><a href="#impl-From%3CExprYield%3E">From&lt;ExprYield&gt;</a><a href="#impl-From%3CExprVerbatim%3E">From&lt;ExprVerbatim&gt;</a><a href="#impl-ToTokens">ToTokens</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-Send">!Send</a><a href="#impl-Sync">!Sync</a></div></div><p class='location'><a href='index.html'>syn</a></p><script>window.sidebarCurrent = {name: 'Expr', ty: 'enum', relpath: ''};</script><script defer src="sidebar-items.js"></script></div>
</nav>
<div class="theme-picker">
<button id="theme-picker" aria-label="Pick another theme!">
<img src="../brush.svg" width="18" alt="Pick another theme!">
</button>
<div id="theme-choices"></div>
</div>
<script src="../theme.js"></script>
<nav class="sub">
<form class="search-form js-only">
<div class="search-container">
<input class="search-input" name="search"
autocomplete="off"
placeholder="Click or press S to search, ? for more options…"
type="search">
</div>
</form>
</nav>
<section id='main' class="content"><h1 class='fqn'><span class='in-band'>Enum <a href='index.html'>syn</a>::<wbr><a class="enum" href=''>Expr</a></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/syn/macros.rs.html#60-62' title='goto source code'>[src]</a></span></h1><div class="docblock type-decl"><pre class='rust enum'>pub enum Expr {
Box(<a class="struct" href="../syn/struct.ExprBox.html" title="struct syn::ExprBox">ExprBox</a>),
InPlace(<a class="struct" href="../syn/struct.ExprInPlace.html" title="struct syn::ExprInPlace">ExprInPlace</a>),
Array(<a class="struct" href="../syn/struct.ExprArray.html" title="struct syn::ExprArray">ExprArray</a>),
Call(<a class="struct" href="../syn/struct.ExprCall.html" title="struct syn::ExprCall">ExprCall</a>),
MethodCall(<a class="struct" href="../syn/struct.ExprMethodCall.html" title="struct syn::ExprMethodCall">ExprMethodCall</a>),
Tuple(<a class="struct" href="../syn/struct.ExprTuple.html" title="struct syn::ExprTuple">ExprTuple</a>),
Binary(<a class="struct" href="../syn/struct.ExprBinary.html" title="struct syn::ExprBinary">ExprBinary</a>),
Unary(<a class="struct" href="../syn/struct.ExprUnary.html" title="struct syn::ExprUnary">ExprUnary</a>),
Lit(<a class="struct" href="../syn/struct.ExprLit.html" title="struct syn::ExprLit">ExprLit</a>),
Cast(<a class="struct" href="../syn/struct.ExprCast.html" title="struct syn::ExprCast">ExprCast</a>),
Type(<a class="struct" href="../syn/struct.ExprType.html" title="struct syn::ExprType">ExprType</a>),
If(<a class="struct" href="../syn/struct.ExprIf.html" title="struct syn::ExprIf">ExprIf</a>),
IfLet(<a class="struct" href="../syn/struct.ExprIfLet.html" title="struct syn::ExprIfLet">ExprIfLet</a>),
While(<a class="struct" href="../syn/struct.ExprWhile.html" title="struct syn::ExprWhile">ExprWhile</a>),
WhileLet(<a class="struct" href="../syn/struct.ExprWhileLet.html" title="struct syn::ExprWhileLet">ExprWhileLet</a>),
ForLoop(<a class="struct" href="../syn/struct.ExprForLoop.html" title="struct syn::ExprForLoop">ExprForLoop</a>),
Loop(<a class="struct" href="../syn/struct.ExprLoop.html" title="struct syn::ExprLoop">ExprLoop</a>),
Match(<a class="struct" href="../syn/struct.ExprMatch.html" title="struct syn::ExprMatch">ExprMatch</a>),
Closure(<a class="struct" href="../syn/struct.ExprClosure.html" title="struct syn::ExprClosure">ExprClosure</a>),
Unsafe(<a class="struct" href="../syn/struct.ExprUnsafe.html" title="struct syn::ExprUnsafe">ExprUnsafe</a>),
Block(<a class="struct" href="../syn/struct.ExprBlock.html" title="struct syn::ExprBlock">ExprBlock</a>),
Assign(<a class="struct" href="../syn/struct.ExprAssign.html" title="struct syn::ExprAssign">ExprAssign</a>),
AssignOp(<a class="struct" href="../syn/struct.ExprAssignOp.html" title="struct syn::ExprAssignOp">ExprAssignOp</a>),
Field(<a class="struct" href="../syn/struct.ExprField.html" title="struct syn::ExprField">ExprField</a>),
Index(<a class="struct" href="../syn/struct.ExprIndex.html" title="struct syn::ExprIndex">ExprIndex</a>),
Range(<a class="struct" href="../syn/struct.ExprRange.html" title="struct syn::ExprRange">ExprRange</a>),
Path(<a class="struct" href="../syn/struct.ExprPath.html" title="struct syn::ExprPath">ExprPath</a>),
Reference(<a class="struct" href="../syn/struct.ExprReference.html" title="struct syn::ExprReference">ExprReference</a>),
Break(<a class="struct" href="../syn/struct.ExprBreak.html" title="struct syn::ExprBreak">ExprBreak</a>),
Continue(<a class="struct" href="../syn/struct.ExprContinue.html" title="struct syn::ExprContinue">ExprContinue</a>),
Return(<a class="struct" href="../syn/struct.ExprReturn.html" title="struct syn::ExprReturn">ExprReturn</a>),
Macro(<a class="struct" href="../syn/struct.ExprMacro.html" title="struct syn::ExprMacro">ExprMacro</a>),
Struct(<a class="struct" href="../syn/struct.ExprStruct.html" title="struct syn::ExprStruct">ExprStruct</a>),
Repeat(<a class="struct" href="../syn/struct.ExprRepeat.html" title="struct syn::ExprRepeat">ExprRepeat</a>),
Paren(<a class="struct" href="../syn/struct.ExprParen.html" title="struct syn::ExprParen">ExprParen</a>),
Group(<a class="struct" href="../syn/struct.ExprGroup.html" title="struct syn::ExprGroup">ExprGroup</a>),
Try(<a class="struct" href="../syn/struct.ExprTry.html" title="struct syn::ExprTry">ExprTry</a>),
Catch(<a class="struct" href="../syn/struct.ExprCatch.html" title="struct syn::ExprCatch">ExprCatch</a>),
Yield(<a class="struct" href="../syn/struct.ExprYield.html" title="struct syn::ExprYield">ExprYield</a>),
Verbatim(<a class="struct" href="../syn/struct.ExprVerbatim.html" title="struct syn::ExprVerbatim">ExprVerbatim</a>),
}</pre></div><div class='docblock'><p>A Rust expression.</p>
<p><em>This type is available if Syn is built with the <code>&quot;derive&quot;</code> or <code>&quot;full&quot;</code>
feature.</em></p>
<h1 id="syntax-tree-enums" class="section-header"><a href="#syntax-tree-enums">Syntax tree enums</a></h1>
<p>This type is a syntax tree enum. In Syn this and other syntax tree enums
are designed to be traversed using the following rebinding idiom.</p>
<pre class="rust rust-example-rendered">
<span class="kw">let</span> <span class="ident">expr</span>: <span class="ident">Expr</span> <span class="op">=</span> <span class="comment">/* ... */</span>;
<span class="kw">match</span> <span class="ident">expr</span> {
<span class="ident">Expr</span>::<span class="ident">MethodCall</span>(<span class="ident">expr</span>) <span class="op">=&gt;</span> {
<span class="comment">/* ... */</span>
}
<span class="ident">Expr</span>::<span class="ident">Cast</span>(<span class="ident">expr</span>) <span class="op">=&gt;</span> {
<span class="comment">/* ... */</span>
}
<span class="ident">Expr</span>::<span class="ident">IfLet</span>(<span class="ident">expr</span>) <span class="op">=&gt;</span> {
<span class="comment">/* ... */</span>
}
<span class="comment">/* ... */</span>
}</pre>
<p>We begin with a variable <code>expr</code> of type <code>Expr</code> that has no fields
(because it is an enum), and by matching on it and rebinding a variable
with the same name <code>expr</code> we effectively imbue our variable with all of
the data fields provided by the variant that it turned out to be. So for
example above if we ended up in the <code>MethodCall</code> case then we get to use
<code>expr.receiver</code>, <code>expr.args</code> etc; if we ended up in the <code>IfLet</code> case we
get to use <code>expr.pat</code>, <code>expr.then_branch</code>, <code>expr.else_branch</code>.</p>
<p>The pattern is similar if the input expression is borrowed:</p>
<pre class="rust rust-example-rendered">
<span class="kw">match</span> <span class="kw-2">*</span><span class="ident">expr</span> {
<span class="ident">Expr</span>::<span class="ident">MethodCall</span>(<span class="kw-2">ref</span> <span class="ident">expr</span>) <span class="op">=&gt;</span> {</pre>
<p>This approach avoids repeating the variant names twice on every line.</p>
<pre class="rust rust-example-rendered">
<span class="ident">Expr</span>::<span class="ident">MethodCall</span>(<span class="ident">ExprMethodCall</span> { <span class="ident">method</span>, <span class="ident">args</span>, .. }) <span class="op">=&gt;</span> { <span class="comment">// repetitive</span></pre>
<p>In general, the name to which a syntax tree enum variant is bound should
be a suitable name for the complete syntax tree enum type.</p>
<pre class="rust rust-example-rendered">
<span class="comment">// Binding is called `base` which is the name I would use if I were</span>
<span class="comment">// assigning `*discriminant.base` without an `if let`.</span>
<span class="kw">if</span> <span class="kw">let</span> <span class="ident">Expr</span>::<span class="ident">Tuple</span>(<span class="kw-2">ref</span> <span class="ident">base</span>) <span class="op">=</span> <span class="kw-2">*</span><span class="ident">discriminant</span>.<span class="ident">base</span> {</pre>
<p>A sign that you may not be choosing the right variable names is if you
see names getting repeated in your code, like accessing
<code>receiver.receiver</code> or <code>pat.pat</code> or <code>cond.cond</code>.</p>
</div><h2 id='variants' class='variants small-section-header'>
Variants<a href='#variants' class='anchor'></a></h2>
<span id="variant.Box" class="variant small-section-header"><a href="#variant.Box" class="anchor field"></a><span id='Box.v' class='invisible'><code>Box(<a class="struct" href="../syn/struct.ExprBox.html" title="struct syn::ExprBox">ExprBox</a>)</code></span></span><div class='docblock'><p>A box expression: <code>box f</code>.</p>
<p><em>This type is available if Syn is built with the <code>&quot;full&quot;</code> feature.</em></p>
</div><span id="variant.InPlace" class="variant small-section-header"><a href="#variant.InPlace" class="anchor field"></a><span id='InPlace.v' class='invisible'><code>InPlace(<a class="struct" href="../syn/struct.ExprInPlace.html" title="struct syn::ExprInPlace">ExprInPlace</a>)</code></span></span><div class='docblock'><p>A placement expression: <code>place &lt;- value</code>.</p>
<p><em>This type is available if Syn is built with the <code>&quot;full&quot;</code> feature.</em></p>
</div><span id="variant.Array" class="variant small-section-header"><a href="#variant.Array" class="anchor field"></a><span id='Array.v' class='invisible'><code>Array(<a class="struct" href="../syn/struct.ExprArray.html" title="struct syn::ExprArray">ExprArray</a>)</code></span></span><div class='docblock'><p>A slice literal expression: <code>[a, b, c, d]</code>.</p>
<p><em>This type is available if Syn is built with the <code>&quot;full&quot;</code> feature.</em></p>
</div><span id="variant.Call" class="variant small-section-header"><a href="#variant.Call" class="anchor field"></a><span id='Call.v' class='invisible'><code>Call(<a class="struct" href="../syn/struct.ExprCall.html" title="struct syn::ExprCall">ExprCall</a>)</code></span></span><div class='docblock'><p>A function call expression: <code>invoke(a, b)</code>.</p>
<p><em>This type is available if Syn is built with the <code>&quot;derive&quot;</code> or
<code>&quot;full&quot;</code> feature.</em></p>
</div><span id="variant.MethodCall" class="variant small-section-header"><a href="#variant.MethodCall" class="anchor field"></a><span id='MethodCall.v' class='invisible'><code>MethodCall(<a class="struct" href="../syn/struct.ExprMethodCall.html" title="struct syn::ExprMethodCall">ExprMethodCall</a>)</code></span></span><div class='docblock'><p>A method call expression: <code>x.foo::&lt;T&gt;(a, b)</code>.</p>
<p><em>This type is available if Syn is built with the <code>&quot;full&quot;</code> feature.</em></p>
</div><span id="variant.Tuple" class="variant small-section-header"><a href="#variant.Tuple" class="anchor field"></a><span id='Tuple.v' class='invisible'><code>Tuple(<a class="struct" href="../syn/struct.ExprTuple.html" title="struct syn::ExprTuple">ExprTuple</a>)</code></span></span><div class='docblock'><p>A tuple expression: <code>(a, b, c, d)</code>.</p>
<p><em>This type is available if Syn is built with the <code>&quot;full&quot;</code> feature.</em></p>
</div><span id="variant.Binary" class="variant small-section-header"><a href="#variant.Binary" class="anchor field"></a><span id='Binary.v' class='invisible'><code>Binary(<a class="struct" href="../syn/struct.ExprBinary.html" title="struct syn::ExprBinary">ExprBinary</a>)</code></span></span><div class='docblock'><p>A binary operation: <code>a + b</code>, <code>a * b</code>.</p>
<p><em>This type is available if Syn is built with the <code>&quot;derive&quot;</code> or
<code>&quot;full&quot;</code> feature.</em></p>
</div><span id="variant.Unary" class="variant small-section-header"><a href="#variant.Unary" class="anchor field"></a><span id='Unary.v' class='invisible'><code>Unary(<a class="struct" href="../syn/struct.ExprUnary.html" title="struct syn::ExprUnary">ExprUnary</a>)</code></span></span><div class='docblock'><p>A unary operation: <code>!x</code>, <code>*x</code>.</p>
<p><em>This type is available if Syn is built with the <code>&quot;derive&quot;</code> or
<code>&quot;full&quot;</code> feature.</em></p>
</div><span id="variant.Lit" class="variant small-section-header"><a href="#variant.Lit" class="anchor field"></a><span id='Lit.v' class='invisible'><code>Lit(<a class="struct" href="../syn/struct.ExprLit.html" title="struct syn::ExprLit">ExprLit</a>)</code></span></span><div class='docblock'><p>A literal in place of an expression: <code>1</code>, <code>&quot;foo&quot;</code>.</p>
<p><em>This type is available if Syn is built with the <code>&quot;derive&quot;</code> or
<code>&quot;full&quot;</code> feature.</em></p>
</div><span id="variant.Cast" class="variant small-section-header"><a href="#variant.Cast" class="anchor field"></a><span id='Cast.v' class='invisible'><code>Cast(<a class="struct" href="../syn/struct.ExprCast.html" title="struct syn::ExprCast">ExprCast</a>)</code></span></span><div class='docblock'><p>A cast expression: <code>foo as f64</code>.</p>
<p><em>This type is available if Syn is built with the <code>&quot;derive&quot;</code> or
<code>&quot;full&quot;</code> feature.</em></p>
</div><span id="variant.Type" class="variant small-section-header"><a href="#variant.Type" class="anchor field"></a><span id='Type.v' class='invisible'><code>Type(<a class="struct" href="../syn/struct.ExprType.html" title="struct syn::ExprType">ExprType</a>)</code></span></span><div class='docblock'><p>A type ascription expression: <code>foo: f64</code>.</p>
<p><em>This type is available if Syn is built with the <code>&quot;full&quot;</code> feature.</em></p>
</div><span id="variant.If" class="variant small-section-header"><a href="#variant.If" class="anchor field"></a><span id='If.v' class='invisible'><code>If(<a class="struct" href="../syn/struct.ExprIf.html" title="struct syn::ExprIf">ExprIf</a>)</code></span></span><div class='docblock'><p>An <code>if</code> expression with an optional <code>else</code> block: <code>if expr { ... } else { ... }</code>.</p>
<p>The <code>else</code> branch expression may only be an <code>If</code>, <code>IfLet</code>, or
<code>Block</code> expression, not any of the other types of expression.</p>
<p><em>This type is available if Syn is built with the <code>&quot;full&quot;</code> feature.</em></p>
</div><span id="variant.IfLet" class="variant small-section-header"><a href="#variant.IfLet" class="anchor field"></a><span id='IfLet.v' class='invisible'><code>IfLet(<a class="struct" href="../syn/struct.ExprIfLet.html" title="struct syn::ExprIfLet">ExprIfLet</a>)</code></span></span><div class='docblock'><p>An <code>if let</code> expression with an optional <code>else</code> block: <code>if let pat = expr { ... } else { ... }</code>.</p>
<p>The <code>else</code> branch expression may only be an <code>If</code>, <code>IfLet</code>, or
<code>Block</code> expression, not any of the other types of expression.</p>
<p><em>This type is available if Syn is built with the <code>&quot;full&quot;</code> feature.</em></p>
</div><span id="variant.While" class="variant small-section-header"><a href="#variant.While" class="anchor field"></a><span id='While.v' class='invisible'><code>While(<a class="struct" href="../syn/struct.ExprWhile.html" title="struct syn::ExprWhile">ExprWhile</a>)</code></span></span><div class='docblock'><p>A while loop: <code>while expr { ... }</code>.</p>
<p><em>This type is available if Syn is built with the <code>&quot;full&quot;</code> feature.</em></p>
</div><span id="variant.WhileLet" class="variant small-section-header"><a href="#variant.WhileLet" class="anchor field"></a><span id='WhileLet.v' class='invisible'><code>WhileLet(<a class="struct" href="../syn/struct.ExprWhileLet.html" title="struct syn::ExprWhileLet">ExprWhileLet</a>)</code></span></span><div class='docblock'><p>A while-let loop: <code>while let pat = expr { ... }</code>.</p>
<p><em>This type is available if Syn is built with the <code>&quot;full&quot;</code> feature.</em></p>
</div><span id="variant.ForLoop" class="variant small-section-header"><a href="#variant.ForLoop" class="anchor field"></a><span id='ForLoop.v' class='invisible'><code>ForLoop(<a class="struct" href="../syn/struct.ExprForLoop.html" title="struct syn::ExprForLoop">ExprForLoop</a>)</code></span></span><div class='docblock'><p>A for loop: <code>for pat in expr { ... }</code>.</p>
<p><em>This type is available if Syn is built with the <code>&quot;full&quot;</code> feature.</em></p>
</div><span id="variant.Loop" class="variant small-section-header"><a href="#variant.Loop" class="anchor field"></a><span id='Loop.v' class='invisible'><code>Loop(<a class="struct" href="../syn/struct.ExprLoop.html" title="struct syn::ExprLoop">ExprLoop</a>)</code></span></span><div class='docblock'><p>Conditionless loop: <code>loop { ... }</code>.</p>
<p><em>This type is available if Syn is built with the <code>&quot;full&quot;</code> feature.</em></p>
</div><span id="variant.Match" class="variant small-section-header"><a href="#variant.Match" class="anchor field"></a><span id='Match.v' class='invisible'><code>Match(<a class="struct" href="../syn/struct.ExprMatch.html" title="struct syn::ExprMatch">ExprMatch</a>)</code></span></span><div class='docblock'><p>A <code>match</code> expression: <code>match n { Some(n) =&gt; {}, None =&gt; {} }</code>.</p>
<p><em>This type is available if Syn is built with the <code>&quot;full&quot;</code> feature.</em></p>
</div><span id="variant.Closure" class="variant small-section-header"><a href="#variant.Closure" class="anchor field"></a><span id='Closure.v' class='invisible'><code>Closure(<a class="struct" href="../syn/struct.ExprClosure.html" title="struct syn::ExprClosure">ExprClosure</a>)</code></span></span><div class='docblock'><p>A closure expression: <code>|a, b| a + b</code>.</p>
<p><em>This type is available if Syn is built with the <code>&quot;full&quot;</code> feature.</em></p>
</div><span id="variant.Unsafe" class="variant small-section-header"><a href="#variant.Unsafe" class="anchor field"></a><span id='Unsafe.v' class='invisible'><code>Unsafe(<a class="struct" href="../syn/struct.ExprUnsafe.html" title="struct syn::ExprUnsafe">ExprUnsafe</a>)</code></span></span><div class='docblock'><p>An unsafe block: <code>unsafe { ... }</code>.</p>
<p><em>This type is available if Syn is built with the <code>&quot;full&quot;</code> feature.</em></p>
</div><span id="variant.Block" class="variant small-section-header"><a href="#variant.Block" class="anchor field"></a><span id='Block.v' class='invisible'><code>Block(<a class="struct" href="../syn/struct.ExprBlock.html" title="struct syn::ExprBlock">ExprBlock</a>)</code></span></span><div class='docblock'><p>A blocked scope: <code>{ ... }</code>.</p>
<p><em>This type is available if Syn is built with the <code>&quot;full&quot;</code> feature.</em></p>
</div><span id="variant.Assign" class="variant small-section-header"><a href="#variant.Assign" class="anchor field"></a><span id='Assign.v' class='invisible'><code>Assign(<a class="struct" href="../syn/struct.ExprAssign.html" title="struct syn::ExprAssign">ExprAssign</a>)</code></span></span><div class='docblock'><p>An assignment expression: <code>a = compute()</code>.</p>
<p><em>This type is available if Syn is built with the <code>&quot;full&quot;</code> feature.</em></p>
</div><span id="variant.AssignOp" class="variant small-section-header"><a href="#variant.AssignOp" class="anchor field"></a><span id='AssignOp.v' class='invisible'><code>AssignOp(<a class="struct" href="../syn/struct.ExprAssignOp.html" title="struct syn::ExprAssignOp">ExprAssignOp</a>)</code></span></span><div class='docblock'><p>A compound assignment expression: <code>counter += 1</code>.</p>
<p><em>This type is available if Syn is built with the <code>&quot;full&quot;</code> feature.</em></p>
</div><span id="variant.Field" class="variant small-section-header"><a href="#variant.Field" class="anchor field"></a><span id='Field.v' class='invisible'><code>Field(<a class="struct" href="../syn/struct.ExprField.html" title="struct syn::ExprField">ExprField</a>)</code></span></span><div class='docblock'><p>Access of a named struct field (<code>obj.k</code>) or unnamed tuple struct
field (<code>obj.0</code>).</p>
<p><em>This type is available if Syn is built with the <code>&quot;full&quot;</code> feature.</em></p>
</div><span id="variant.Index" class="variant small-section-header"><a href="#variant.Index" class="anchor field"></a><span id='Index.v' class='invisible'><code>Index(<a class="struct" href="../syn/struct.ExprIndex.html" title="struct syn::ExprIndex">ExprIndex</a>)</code></span></span><div class='docblock'><p>A square bracketed indexing expression: <code>vector[2]</code>.</p>
<p><em>This type is available if Syn is built with the <code>&quot;derive&quot;</code> or
<code>&quot;full&quot;</code> feature.</em></p>
</div><span id="variant.Range" class="variant small-section-header"><a href="#variant.Range" class="anchor field"></a><span id='Range.v' class='invisible'><code>Range(<a class="struct" href="../syn/struct.ExprRange.html" title="struct syn::ExprRange">ExprRange</a>)</code></span></span><div class='docblock'><p>A range expression: <code>1..2</code>, <code>1..</code>, <code>..2</code>, <code>1..=2</code>, <code>..=2</code>.</p>
<p><em>This type is available if Syn is built with the <code>&quot;full&quot;</code> feature.</em></p>
</div><span id="variant.Path" class="variant small-section-header"><a href="#variant.Path" class="anchor field"></a><span id='Path.v' class='invisible'><code>Path(<a class="struct" href="../syn/struct.ExprPath.html" title="struct syn::ExprPath">ExprPath</a>)</code></span></span><div class='docblock'><p>A path like <code>std::mem::replace</code> possibly containing generic
parameters and a qualified self-type.</p>
<p>A plain identifier like <code>x</code> is a path of length 1.</p>
<p><em>This type is available if Syn is built with the <code>&quot;derive&quot;</code> or
<code>&quot;full&quot;</code> feature.</em></p>
</div><span id="variant.Reference" class="variant small-section-header"><a href="#variant.Reference" class="anchor field"></a><span id='Reference.v' class='invisible'><code>Reference(<a class="struct" href="../syn/struct.ExprReference.html" title="struct syn::ExprReference">ExprReference</a>)</code></span></span><div class='docblock'><p>A referencing operation: <code>&amp;a</code> or <code>&amp;mut a</code>.</p>
<p><em>This type is available if Syn is built with the <code>&quot;full&quot;</code> feature.</em></p>
</div><span id="variant.Break" class="variant small-section-header"><a href="#variant.Break" class="anchor field"></a><span id='Break.v' class='invisible'><code>Break(<a class="struct" href="../syn/struct.ExprBreak.html" title="struct syn::ExprBreak">ExprBreak</a>)</code></span></span><div class='docblock'><p>A <code>break</code>, with an optional label to break and an optional
expression.</p>
<p><em>This type is available if Syn is built with the <code>&quot;full&quot;</code> feature.</em></p>
</div><span id="variant.Continue" class="variant small-section-header"><a href="#variant.Continue" class="anchor field"></a><span id='Continue.v' class='invisible'><code>Continue(<a class="struct" href="../syn/struct.ExprContinue.html" title="struct syn::ExprContinue">ExprContinue</a>)</code></span></span><div class='docblock'><p>A <code>continue</code>, with an optional label.</p>
<p><em>This type is available if Syn is built with the <code>&quot;full&quot;</code> feature.</em></p>
</div><span id="variant.Return" class="variant small-section-header"><a href="#variant.Return" class="anchor field"></a><span id='Return.v' class='invisible'><code>Return(<a class="struct" href="../syn/struct.ExprReturn.html" title="struct syn::ExprReturn">ExprReturn</a>)</code></span></span><div class='docblock'><p>A <code>return</code>, with an optional value to be returned.</p>
<p><em>This type is available if Syn is built with the <code>&quot;full&quot;</code> feature.</em></p>
</div><span id="variant.Macro" class="variant small-section-header"><a href="#variant.Macro" class="anchor field"></a><span id='Macro.v' class='invisible'><code>Macro(<a class="struct" href="../syn/struct.ExprMacro.html" title="struct syn::ExprMacro">ExprMacro</a>)</code></span></span><div class='docblock'><p>A macro invocation expression: <code>format!(&quot;{}&quot;, q)</code>.</p>
<p><em>This type is available if Syn is built with the <code>&quot;full&quot;</code> feature.</em></p>
</div><span id="variant.Struct" class="variant small-section-header"><a href="#variant.Struct" class="anchor field"></a><span id='Struct.v' class='invisible'><code>Struct(<a class="struct" href="../syn/struct.ExprStruct.html" title="struct syn::ExprStruct">ExprStruct</a>)</code></span></span><div class='docblock'><p>A struct literal expression: <code>Point { x: 1, y: 1 }</code>.</p>
<p>The <code>rest</code> provides the value of the remaining fields as in <code>S { a: 1, b: 1, ..rest }</code>.</p>
<p><em>This type is available if Syn is built with the <code>&quot;full&quot;</code> feature.</em></p>
</div><span id="variant.Repeat" class="variant small-section-header"><a href="#variant.Repeat" class="anchor field"></a><span id='Repeat.v' class='invisible'><code>Repeat(<a class="struct" href="../syn/struct.ExprRepeat.html" title="struct syn::ExprRepeat">ExprRepeat</a>)</code></span></span><div class='docblock'><p>An array literal constructed from one repeated element: <code>[0u8; N]</code>.</p>
<p><em>This type is available if Syn is built with the <code>&quot;full&quot;</code> feature.</em></p>
</div><span id="variant.Paren" class="variant small-section-header"><a href="#variant.Paren" class="anchor field"></a><span id='Paren.v' class='invisible'><code>Paren(<a class="struct" href="../syn/struct.ExprParen.html" title="struct syn::ExprParen">ExprParen</a>)</code></span></span><div class='docblock'><p>A parenthesized expression: <code>(a + b)</code>.</p>
<p><em>This type is available if Syn is built with the <code>&quot;full&quot;</code> feature.</em></p>
</div><span id="variant.Group" class="variant small-section-header"><a href="#variant.Group" class="anchor field"></a><span id='Group.v' class='invisible'><code>Group(<a class="struct" href="../syn/struct.ExprGroup.html" title="struct syn::ExprGroup">ExprGroup</a>)</code></span></span><div class='docblock'><p>An expression contained within invisible delimiters.</p>
<p>This variant is important for faithfully representing the precedence
of expressions and is related to <code>None</code>-delimited spans in a
<code>TokenStream</code>.</p>
<p><em>This type is available if Syn is built with the <code>&quot;full&quot;</code> feature.</em></p>
</div><span id="variant.Try" class="variant small-section-header"><a href="#variant.Try" class="anchor field"></a><span id='Try.v' class='invisible'><code>Try(<a class="struct" href="../syn/struct.ExprTry.html" title="struct syn::ExprTry">ExprTry</a>)</code></span></span><div class='docblock'><p>A try-expression: <code>expr?</code>.</p>
<p><em>This type is available if Syn is built with the <code>&quot;full&quot;</code> feature.</em></p>
</div><span id="variant.Catch" class="variant small-section-header"><a href="#variant.Catch" class="anchor field"></a><span id='Catch.v' class='invisible'><code>Catch(<a class="struct" href="../syn/struct.ExprCatch.html" title="struct syn::ExprCatch">ExprCatch</a>)</code></span></span><div class='docblock'><p>A catch expression: <code>do catch { ... }</code>.</p>
<p><em>This type is available if Syn is built with the <code>&quot;full&quot;</code> feature.</em></p>
</div><span id="variant.Yield" class="variant small-section-header"><a href="#variant.Yield" class="anchor field"></a><span id='Yield.v' class='invisible'><code>Yield(<a class="struct" href="../syn/struct.ExprYield.html" title="struct syn::ExprYield">ExprYield</a>)</code></span></span><div class='docblock'><p>A yield expression: <code>yield expr</code>.</p>
<p><em>This type is available if Syn is built with the <code>&quot;full&quot;</code> feature.</em></p>
</div><span id="variant.Verbatim" class="variant small-section-header"><a href="#variant.Verbatim" class="anchor field"></a><span id='Verbatim.v' class='invisible'><code>Verbatim(<a class="struct" href="../syn/struct.ExprVerbatim.html" title="struct syn::ExprVerbatim">ExprVerbatim</a>)</code></span></span><div class='docblock'><p>Tokens in expression position not interpreted by Syn.</p>
<p><em>This type is available if Syn is built with the <code>&quot;derive&quot;</code> or
<code>&quot;full&quot;</code> feature.</em></p>
</div>
<h2 id='implementations' class='small-section-header'>
Trait Implementations<a href='#implementations' class='anchor'></a>
</h2>
<div id='implementations-list'>
<h3 id='impl-Synom' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../syn/synom/trait.Synom.html" title="trait syn::synom::Synom">Synom</a> for <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code><a href='#impl-Synom' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/expr.rs.html#1060-1066' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.parse' class="method"><span id='parse.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../syn/synom/trait.Synom.html#tymethod.parse' class='fnname'>parse</a>(i: <a class="struct" href="../syn/buffer/struct.Cursor.html" title="struct syn::buffer::Cursor">Cursor</a>) -&gt; <a class="type" href="../syn/synom/type.PResult.html" title="type syn::synom::PResult">PResult</a>&lt;Self&gt;</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/parsers.rs.html#68-70' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><h4 id='method.description' class="method"><span id='description.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../syn/synom/trait.Synom.html#method.description' class='fnname'>description</a>() -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt;</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/expr.rs.html#1063-1065' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>A short name of the type being parsed. <a href="../syn/synom/trait.Synom.html#method.description">Read more</a></p>
</div></div><h3 id='impl-Clone' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code><a href='#impl-Clone' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#59' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.clone' class="method"><span id='clone.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone' class='fnname'>clone</a>(&amp;self) -&gt; <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#59' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
</div><h4 id='method.clone_from' class="method"><span id='clone_from.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/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/nightly/std/primitive.reference.html">&amp;</a>Self)</code></span></td><td><span class='out-of-band'><div class='ghost'></div><div class='since' title='Stable since Rust version 1.0.0'>1.0.0</div><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/clone.rs.html#117-119' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
</div></div><h3 id='impl-From%3CExprBox%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../syn/struct.ExprBox.html" title="struct syn::ExprBox">ExprBox</a>&gt; for <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code><a href='#impl-From%3CExprBox%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#98-102' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.from' class="method"><span id='from.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(e: <a class="struct" href="../syn/struct.ExprBox.html" title="struct syn::ExprBox">ExprBox</a>) -&gt; <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#99-101' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CExprInPlace%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../syn/struct.ExprInPlace.html" title="struct syn::ExprInPlace">ExprInPlace</a>&gt; for <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code><a href='#impl-From%3CExprInPlace%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#98-102' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.from-1' class="method"><span id='from.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(e: <a class="struct" href="../syn/struct.ExprInPlace.html" title="struct syn::ExprInPlace">ExprInPlace</a>) -&gt; <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#99-101' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CExprArray%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../syn/struct.ExprArray.html" title="struct syn::ExprArray">ExprArray</a>&gt; for <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code><a href='#impl-From%3CExprArray%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#98-102' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.from-2' class="method"><span id='from.v-2' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(e: <a class="struct" href="../syn/struct.ExprArray.html" title="struct syn::ExprArray">ExprArray</a>) -&gt; <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#99-101' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CExprCall%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../syn/struct.ExprCall.html" title="struct syn::ExprCall">ExprCall</a>&gt; for <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code><a href='#impl-From%3CExprCall%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#98-102' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.from-3' class="method"><span id='from.v-3' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(e: <a class="struct" href="../syn/struct.ExprCall.html" title="struct syn::ExprCall">ExprCall</a>) -&gt; <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#99-101' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CExprMethodCall%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../syn/struct.ExprMethodCall.html" title="struct syn::ExprMethodCall">ExprMethodCall</a>&gt; for <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code><a href='#impl-From%3CExprMethodCall%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#98-102' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.from-4' class="method"><span id='from.v-4' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(e: <a class="struct" href="../syn/struct.ExprMethodCall.html" title="struct syn::ExprMethodCall">ExprMethodCall</a>) -&gt; <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#99-101' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CExprTuple%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../syn/struct.ExprTuple.html" title="struct syn::ExprTuple">ExprTuple</a>&gt; for <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code><a href='#impl-From%3CExprTuple%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#98-102' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.from-5' class="method"><span id='from.v-5' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(e: <a class="struct" href="../syn/struct.ExprTuple.html" title="struct syn::ExprTuple">ExprTuple</a>) -&gt; <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#99-101' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CExprBinary%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../syn/struct.ExprBinary.html" title="struct syn::ExprBinary">ExprBinary</a>&gt; for <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code><a href='#impl-From%3CExprBinary%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#98-102' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.from-6' class="method"><span id='from.v-6' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(e: <a class="struct" href="../syn/struct.ExprBinary.html" title="struct syn::ExprBinary">ExprBinary</a>) -&gt; <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#99-101' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CExprUnary%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../syn/struct.ExprUnary.html" title="struct syn::ExprUnary">ExprUnary</a>&gt; for <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code><a href='#impl-From%3CExprUnary%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#98-102' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.from-7' class="method"><span id='from.v-7' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(e: <a class="struct" href="../syn/struct.ExprUnary.html" title="struct syn::ExprUnary">ExprUnary</a>) -&gt; <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#99-101' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CExprLit%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../syn/struct.ExprLit.html" title="struct syn::ExprLit">ExprLit</a>&gt; for <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code><a href='#impl-From%3CExprLit%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#98-102' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.from-8' class="method"><span id='from.v-8' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(e: <a class="struct" href="../syn/struct.ExprLit.html" title="struct syn::ExprLit">ExprLit</a>) -&gt; <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#99-101' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CExprCast%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../syn/struct.ExprCast.html" title="struct syn::ExprCast">ExprCast</a>&gt; for <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code><a href='#impl-From%3CExprCast%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#98-102' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.from-9' class="method"><span id='from.v-9' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(e: <a class="struct" href="../syn/struct.ExprCast.html" title="struct syn::ExprCast">ExprCast</a>) -&gt; <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#99-101' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CExprType%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../syn/struct.ExprType.html" title="struct syn::ExprType">ExprType</a>&gt; for <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code><a href='#impl-From%3CExprType%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#98-102' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.from-10' class="method"><span id='from.v-10' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(e: <a class="struct" href="../syn/struct.ExprType.html" title="struct syn::ExprType">ExprType</a>) -&gt; <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#99-101' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CExprIf%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../syn/struct.ExprIf.html" title="struct syn::ExprIf">ExprIf</a>&gt; for <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code><a href='#impl-From%3CExprIf%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#98-102' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.from-11' class="method"><span id='from.v-11' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(e: <a class="struct" href="../syn/struct.ExprIf.html" title="struct syn::ExprIf">ExprIf</a>) -&gt; <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#99-101' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CExprIfLet%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../syn/struct.ExprIfLet.html" title="struct syn::ExprIfLet">ExprIfLet</a>&gt; for <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code><a href='#impl-From%3CExprIfLet%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#98-102' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.from-12' class="method"><span id='from.v-12' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(e: <a class="struct" href="../syn/struct.ExprIfLet.html" title="struct syn::ExprIfLet">ExprIfLet</a>) -&gt; <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#99-101' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CExprWhile%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../syn/struct.ExprWhile.html" title="struct syn::ExprWhile">ExprWhile</a>&gt; for <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code><a href='#impl-From%3CExprWhile%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#98-102' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.from-13' class="method"><span id='from.v-13' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(e: <a class="struct" href="../syn/struct.ExprWhile.html" title="struct syn::ExprWhile">ExprWhile</a>) -&gt; <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#99-101' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CExprWhileLet%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../syn/struct.ExprWhileLet.html" title="struct syn::ExprWhileLet">ExprWhileLet</a>&gt; for <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code><a href='#impl-From%3CExprWhileLet%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#98-102' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.from-14' class="method"><span id='from.v-14' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(e: <a class="struct" href="../syn/struct.ExprWhileLet.html" title="struct syn::ExprWhileLet">ExprWhileLet</a>) -&gt; <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#99-101' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CExprForLoop%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../syn/struct.ExprForLoop.html" title="struct syn::ExprForLoop">ExprForLoop</a>&gt; for <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code><a href='#impl-From%3CExprForLoop%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#98-102' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.from-15' class="method"><span id='from.v-15' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(e: <a class="struct" href="../syn/struct.ExprForLoop.html" title="struct syn::ExprForLoop">ExprForLoop</a>) -&gt; <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#99-101' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CExprLoop%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../syn/struct.ExprLoop.html" title="struct syn::ExprLoop">ExprLoop</a>&gt; for <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code><a href='#impl-From%3CExprLoop%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#98-102' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.from-16' class="method"><span id='from.v-16' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(e: <a class="struct" href="../syn/struct.ExprLoop.html" title="struct syn::ExprLoop">ExprLoop</a>) -&gt; <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#99-101' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CExprMatch%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../syn/struct.ExprMatch.html" title="struct syn::ExprMatch">ExprMatch</a>&gt; for <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code><a href='#impl-From%3CExprMatch%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#98-102' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.from-17' class="method"><span id='from.v-17' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(e: <a class="struct" href="../syn/struct.ExprMatch.html" title="struct syn::ExprMatch">ExprMatch</a>) -&gt; <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#99-101' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CExprClosure%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../syn/struct.ExprClosure.html" title="struct syn::ExprClosure">ExprClosure</a>&gt; for <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code><a href='#impl-From%3CExprClosure%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#98-102' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.from-18' class="method"><span id='from.v-18' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(e: <a class="struct" href="../syn/struct.ExprClosure.html" title="struct syn::ExprClosure">ExprClosure</a>) -&gt; <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#99-101' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CExprUnsafe%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../syn/struct.ExprUnsafe.html" title="struct syn::ExprUnsafe">ExprUnsafe</a>&gt; for <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code><a href='#impl-From%3CExprUnsafe%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#98-102' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.from-19' class="method"><span id='from.v-19' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(e: <a class="struct" href="../syn/struct.ExprUnsafe.html" title="struct syn::ExprUnsafe">ExprUnsafe</a>) -&gt; <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#99-101' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CExprBlock%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../syn/struct.ExprBlock.html" title="struct syn::ExprBlock">ExprBlock</a>&gt; for <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code><a href='#impl-From%3CExprBlock%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#98-102' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.from-20' class="method"><span id='from.v-20' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(e: <a class="struct" href="../syn/struct.ExprBlock.html" title="struct syn::ExprBlock">ExprBlock</a>) -&gt; <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#99-101' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CExprAssign%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../syn/struct.ExprAssign.html" title="struct syn::ExprAssign">ExprAssign</a>&gt; for <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code><a href='#impl-From%3CExprAssign%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#98-102' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.from-21' class="method"><span id='from.v-21' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(e: <a class="struct" href="../syn/struct.ExprAssign.html" title="struct syn::ExprAssign">ExprAssign</a>) -&gt; <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#99-101' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CExprAssignOp%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../syn/struct.ExprAssignOp.html" title="struct syn::ExprAssignOp">ExprAssignOp</a>&gt; for <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code><a href='#impl-From%3CExprAssignOp%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#98-102' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.from-22' class="method"><span id='from.v-22' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(e: <a class="struct" href="../syn/struct.ExprAssignOp.html" title="struct syn::ExprAssignOp">ExprAssignOp</a>) -&gt; <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#99-101' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CExprField%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../syn/struct.ExprField.html" title="struct syn::ExprField">ExprField</a>&gt; for <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code><a href='#impl-From%3CExprField%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#98-102' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.from-23' class="method"><span id='from.v-23' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(e: <a class="struct" href="../syn/struct.ExprField.html" title="struct syn::ExprField">ExprField</a>) -&gt; <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#99-101' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CExprIndex%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../syn/struct.ExprIndex.html" title="struct syn::ExprIndex">ExprIndex</a>&gt; for <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code><a href='#impl-From%3CExprIndex%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#98-102' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.from-24' class="method"><span id='from.v-24' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(e: <a class="struct" href="../syn/struct.ExprIndex.html" title="struct syn::ExprIndex">ExprIndex</a>) -&gt; <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#99-101' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CExprRange%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../syn/struct.ExprRange.html" title="struct syn::ExprRange">ExprRange</a>&gt; for <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code><a href='#impl-From%3CExprRange%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#98-102' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.from-25' class="method"><span id='from.v-25' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(e: <a class="struct" href="../syn/struct.ExprRange.html" title="struct syn::ExprRange">ExprRange</a>) -&gt; <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#99-101' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CExprPath%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../syn/struct.ExprPath.html" title="struct syn::ExprPath">ExprPath</a>&gt; for <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code><a href='#impl-From%3CExprPath%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#98-102' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.from-26' class="method"><span id='from.v-26' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(e: <a class="struct" href="../syn/struct.ExprPath.html" title="struct syn::ExprPath">ExprPath</a>) -&gt; <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#99-101' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CExprReference%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../syn/struct.ExprReference.html" title="struct syn::ExprReference">ExprReference</a>&gt; for <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code><a href='#impl-From%3CExprReference%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#98-102' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.from-27' class="method"><span id='from.v-27' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(e: <a class="struct" href="../syn/struct.ExprReference.html" title="struct syn::ExprReference">ExprReference</a>) -&gt; <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#99-101' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CExprBreak%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../syn/struct.ExprBreak.html" title="struct syn::ExprBreak">ExprBreak</a>&gt; for <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code><a href='#impl-From%3CExprBreak%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#98-102' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.from-28' class="method"><span id='from.v-28' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(e: <a class="struct" href="../syn/struct.ExprBreak.html" title="struct syn::ExprBreak">ExprBreak</a>) -&gt; <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#99-101' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CExprContinue%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../syn/struct.ExprContinue.html" title="struct syn::ExprContinue">ExprContinue</a>&gt; for <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code><a href='#impl-From%3CExprContinue%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#98-102' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.from-29' class="method"><span id='from.v-29' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(e: <a class="struct" href="../syn/struct.ExprContinue.html" title="struct syn::ExprContinue">ExprContinue</a>) -&gt; <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#99-101' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CExprReturn%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../syn/struct.ExprReturn.html" title="struct syn::ExprReturn">ExprReturn</a>&gt; for <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code><a href='#impl-From%3CExprReturn%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#98-102' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.from-30' class="method"><span id='from.v-30' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(e: <a class="struct" href="../syn/struct.ExprReturn.html" title="struct syn::ExprReturn">ExprReturn</a>) -&gt; <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#99-101' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CExprMacro%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../syn/struct.ExprMacro.html" title="struct syn::ExprMacro">ExprMacro</a>&gt; for <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code><a href='#impl-From%3CExprMacro%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#98-102' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.from-31' class="method"><span id='from.v-31' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(e: <a class="struct" href="../syn/struct.ExprMacro.html" title="struct syn::ExprMacro">ExprMacro</a>) -&gt; <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#99-101' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CExprStruct%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../syn/struct.ExprStruct.html" title="struct syn::ExprStruct">ExprStruct</a>&gt; for <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code><a href='#impl-From%3CExprStruct%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#98-102' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.from-32' class="method"><span id='from.v-32' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(e: <a class="struct" href="../syn/struct.ExprStruct.html" title="struct syn::ExprStruct">ExprStruct</a>) -&gt; <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#99-101' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CExprRepeat%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../syn/struct.ExprRepeat.html" title="struct syn::ExprRepeat">ExprRepeat</a>&gt; for <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code><a href='#impl-From%3CExprRepeat%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#98-102' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.from-33' class="method"><span id='from.v-33' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(e: <a class="struct" href="../syn/struct.ExprRepeat.html" title="struct syn::ExprRepeat">ExprRepeat</a>) -&gt; <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#99-101' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CExprParen%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../syn/struct.ExprParen.html" title="struct syn::ExprParen">ExprParen</a>&gt; for <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code><a href='#impl-From%3CExprParen%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#98-102' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.from-34' class="method"><span id='from.v-34' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(e: <a class="struct" href="../syn/struct.ExprParen.html" title="struct syn::ExprParen">ExprParen</a>) -&gt; <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#99-101' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CExprGroup%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../syn/struct.ExprGroup.html" title="struct syn::ExprGroup">ExprGroup</a>&gt; for <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code><a href='#impl-From%3CExprGroup%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#98-102' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.from-35' class="method"><span id='from.v-35' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(e: <a class="struct" href="../syn/struct.ExprGroup.html" title="struct syn::ExprGroup">ExprGroup</a>) -&gt; <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#99-101' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CExprTry%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../syn/struct.ExprTry.html" title="struct syn::ExprTry">ExprTry</a>&gt; for <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code><a href='#impl-From%3CExprTry%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#98-102' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.from-36' class="method"><span id='from.v-36' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(e: <a class="struct" href="../syn/struct.ExprTry.html" title="struct syn::ExprTry">ExprTry</a>) -&gt; <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#99-101' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CExprCatch%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../syn/struct.ExprCatch.html" title="struct syn::ExprCatch">ExprCatch</a>&gt; for <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code><a href='#impl-From%3CExprCatch%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#98-102' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.from-37' class="method"><span id='from.v-37' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(e: <a class="struct" href="../syn/struct.ExprCatch.html" title="struct syn::ExprCatch">ExprCatch</a>) -&gt; <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#99-101' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CExprYield%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../syn/struct.ExprYield.html" title="struct syn::ExprYield">ExprYield</a>&gt; for <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code><a href='#impl-From%3CExprYield%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#98-102' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.from-38' class="method"><span id='from.v-38' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(e: <a class="struct" href="../syn/struct.ExprYield.html" title="struct syn::ExprYield">ExprYield</a>) -&gt; <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#99-101' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CExprVerbatim%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../syn/struct.ExprVerbatim.html" title="struct syn::ExprVerbatim">ExprVerbatim</a>&gt; for <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code><a href='#impl-From%3CExprVerbatim%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#98-102' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.from-39' class="method"><span id='from.v-39' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(e: <a class="struct" href="../syn/struct.ExprVerbatim.html" title="struct syn::ExprVerbatim">ExprVerbatim</a>) -&gt; <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#99-101' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the conversion.</p>
</div></div><h3 id='impl-ToTokens' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../quote/to_tokens/trait.ToTokens.html" title="trait quote::to_tokens::ToTokens">ToTokens</a> for <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code><a href='#impl-ToTokens' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#135-141' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.to_tokens' class="method"><span id='to_tokens.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../quote/to_tokens/trait.ToTokens.html#tymethod.to_tokens' class='fnname'>to_tokens</a>(&amp;self, tokens: &amp;mut <a class="struct" href="../proc_macro2/struct.TokenStream.html" title="struct proc_macro2::TokenStream">TokenStream</a>)</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#136-140' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Write <code>self</code> to the given <code>TokenStream</code>. <a href="../quote/to_tokens/trait.ToTokens.html#tymethod.to_tokens">Read more</a></p>
</div><h4 id='method.into_token_stream' class="method"><span id='into_token_stream.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../quote/to_tokens/trait.ToTokens.html#method.into_token_stream' class='fnname'>into_token_stream</a>(self) -&gt; <a class="struct" href="../proc_macro2/struct.TokenStream.html" title="struct proc_macro2::TokenStream">TokenStream</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/quote/to_tokens.rs.html#64-71' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Convert <code>self</code> directly into a <code>TokenStream</code> object. <a href="../quote/to_tokens/trait.ToTokens.html#method.into_token_stream">Read more</a></p>
</div></div></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'>
<h3 id='impl-Send' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl !<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code><a href='#impl-Send' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl !<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code><a href='#impl-Sync' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div></div></section>
<section id='search' class="content hidden"></section>
<section class="footer"></section>
<aside id="help" class="hidden">
<div>
<h1 class="hidden">Help</h1>
<div class="shortcuts">
<h2>Keyboard Shortcuts</h2>
<dl>
<dt><kbd>?</kbd></dt>
<dd>Show this help dialog</dd>
<dt><kbd>S</kbd></dt>
<dd>Focus the search field</dd>
<dt><kbd></kbd></dt>
<dd>Move up in search results</dd>
<dt><kbd></kbd></dt>
<dd>Move down in search results</dd>
<dt><kbd></kbd></dt>
<dd>Switch tab</dd>
<dt><kbd>&#9166;</kbd></dt>
<dd>Go to active search result</dd>
<dt><kbd>+</kbd></dt>
<dd>Expand all sections</dd>
<dt><kbd>-</kbd></dt>
<dd>Collapse all sections</dd>
</dl>
</div>
<div class="infos">
<h2>Search Tricks</h2>
<p>
Prefix searches with a type followed by a colon (e.g.
<code>fn:</code>) to restrict the search to a given type.
</p>
<p>
Accepted types are: <code>fn</code>, <code>mod</code>,
<code>struct</code>, <code>enum</code>,
<code>trait</code>, <code>type</code>, <code>macro</code>,
and <code>const</code>.
</p>
<p>
Search functions by type signature (e.g.
<code>vec -> usize</code> or <code>* -> vec</code>)
</p>
</div>
</div>
</aside>
<script>
window.rootPath = "../";
window.currentCrate = "syn";
</script>
<script src="../main.js"></script>
<script defer src="../search-index.js"></script>
</body>
</html>