469 lines
98 KiB
HTML
469 lines
98 KiB
HTML
|
<!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="../main.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">☰</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-Debug">Debug</a><a href="#impl-Eq">Eq</a><a href="#impl-PartialEq">PartialEq</a><a href="#impl-Hash">Hash</a><a href="#impl-Clone">Clone</a><a href="#impl-From%3CExprBox%3E">From<ExprBox></a><a href="#impl-From%3CExprInPlace%3E">From<ExprInPlace></a><a href="#impl-From%3CExprArray%3E">From<ExprArray></a><a href="#impl-From%3CExprCall%3E">From<ExprCall></a><a href="#impl-From%3CExprMethodCall%3E">From<ExprMethodCall></a><a href="#impl-From%3CExprTuple%3E">From<ExprTuple></a><a href="#impl-From%3CExprBinary%3E">From<ExprBinary></a><a href="#impl-From%3CExprUnary%3E">From<ExprUnary></a><a href="#impl-From%3CExprLit%3E">From<ExprLit></a><a href="#impl-From%3CExprCast%3E">From<ExprCast></a><a href="#impl-From%3CExprType%3E">From<ExprType></a><a href="#impl-From%3CExprIf%3E">From<ExprIf></a><a href="#impl-From%3CExprIfLet%3E">From<ExprIfLet></a><a href="#impl-From%3CExprWhile%3E">From<ExprWhile></a><a href="#impl-From%3CExprWhileLet%3E">From<ExprWhileLet></a><a href="#impl-From%3CExprForLoop%3E">From<ExprForLoop></a><a href="#impl-From%3CExprLoop%3E">From<ExprLoop></a><a href="#impl-From%3CExprMatch%3E">From<ExprMatch></a><a href="#impl-From%3CExprClosure%3E">From<ExprClosure></a><a href="#impl-From%3CExprUnsafe%3E">From<ExprUnsafe></a><a href="#impl-From%3CExprBlock%3E">From<ExprBlock></a><a href="#impl-From%3CExprAssign%3E">From<ExprAssign></a><a href="#impl-From%3CExprAssignOp%3E">From<ExprAssignOp></a><a href="#impl-From%3CExprField%3E">From<ExprField></a><a href="#impl-From%3CExprIndex%3E">From<ExprIndex></a><a href="#impl-From%3CExprRange%3E">From<ExprRange></a><a href="#impl-From%3CExprPath%3E">From<ExprPath></a><a href="#impl-From%3CExprReference%3E">From<ExprReference></a><a href="#impl-From%3CExprBreak%3E">From<ExprBreak></a><a href="#impl-From%3CExprContinue%3E">From<ExprContinue></a><a href="#impl-From%3CExprReturn%3E">From<ExprReturn></a><a href="#impl-From%3CExprMacro%3E">From<ExprMacro></a><a href="#impl-From%3CExprStruct%3E">From<ExprStruct></a><a href="#impl-From%3CExprRepeat%3E">From<ExprRepeat></a><a href="#impl-From%3CExprParen%3E">From<ExprParen></a><a href="#impl-From%3CExprGroup%3E">From<ExprGroup></
|
|||
|
</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'>−</span>]
|
|||
|
</a>
|
|||
|
</span><a class='srclink' href='../src/syn/macros.rs.html#60-62' title='goto source code'>[src]</a></span></h1>
|
|||
|
<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 class='docblock'><p>A Rust expression.</p>
|
|||
|
<p><em>This type is available if Syn is built with the <code>"derive"</code> or <code>"full"</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">=></span> {
|
|||
|
<span class="comment">/* ... */</span>
|
|||
|
}
|
|||
|
<span class="ident">Expr</span>::<span class="ident">Cast</span>(<span class="ident">expr</span>) <span class="op">=></span> {
|
|||
|
<span class="comment">/* ... */</span>
|
|||
|
}
|
|||
|
<span class="ident">Expr</span>::<span class="ident">IfLet</span>(<span class="ident">expr</span>) <span class="op">=></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">=></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">=></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>"full"</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 <- value</code>.</p>
|
|||
|
<p><em>This type is available if Syn is built with the <code>"full"</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>"full"</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>"derive"</code> or
|
|||
|
<code>"full"</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::<T>(a, b)</code>.</p>
|
|||
|
<p><em>This type is available if Syn is built with the <code>"full"</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>"full"</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>"derive"</code> or
|
|||
|
<code>"full"</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>"derive"</code> or
|
|||
|
<code>"full"</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>"foo"</code>.</p>
|
|||
|
<p><em>This type is available if Syn is built with the <code>"derive"</code> or
|
|||
|
<code>"full"</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>"derive"</code> or
|
|||
|
<code>"full"</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>"full"</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>"full"</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>"full"</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>"full"</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>"full"</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>"full"</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>"full"</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) => {}, None => {} }</code>.</p>
|
|||
|
<p><em>This type is available if Syn is built with the <code>"full"</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>"full"</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>"full"</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>"full"</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>"full"</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>"full"</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>"full"</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>"derive"</code> or
|
|||
|
<code>"full"</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>"full"</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>"derive"</code> or
|
|||
|
<code>"full"</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>&a</code> or <code>&mut a</code>.</p>
|
|||
|
<p><em>This type is available if Syn is built with the <code>"full"</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>"full"</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>"full"</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>"full"</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!("{}", q)</code>.</p>
|
|||
|
<p><em>This type is available if Syn is built with the <code>"full"</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>"full"</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>"full"</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>"full"</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>"full"</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>"full"</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>"full"</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>"full"</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>"derive"</code> or
|
|||
|
<code>"full"</code> feature.</em></p>
|
|||
|
</div>
|
|||
|
<h2 id='implementations' class='small-section-header'>
|
|||
|
Trait Implementations<a href='#implementations' class='anchor'></a>
|
|||
|
</h2>
|
|||
|
<h3 id='impl-Synom' class='impl'><span class='in-band'><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><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></h3>
|
|||
|
<div class='impl-items'><h4 id='method.parse' class="method"><span id='parse.v' class='invisible'><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>) -> <a class="type" href="../syn/synom/type.PResult.html" title="type syn::synom::PResult">PResult</a><Self></code></span><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></span></h4>
|
|||
|
<h4 id='method.description' class="method"><span id='description.v' class='invisible'><code>fn <a href='../syn/synom/trait.Synom.html#method.description' class='fnname'>description</a>() -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>></code></span><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></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-Debug' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code><a href='#impl-Debug' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#58' title='goto source code'>[src]</a></span></h3>
|
|||
|
<div class='impl-items'><h4 id='method.fmt' class="method"><span id='fmt.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&self, __arg_0: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#58' title='goto source code'>[src]</a></span></h4>
|
|||
|
<div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
|||
|
</div></div><h3 id='impl-Eq' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> for <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code><a href='#impl-Eq' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#58' title='goto source code'>[src]</a></span></h3>
|
|||
|
<div class='impl-items'></div><h3 id='impl-PartialEq' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a> for <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code><a href='#impl-PartialEq' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#58' title='goto source code'>[src]</a></span></h3>
|
|||
|
<div class='impl-items'><h4 id='method.eq' class="method"><span id='eq.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq' class='fnname'>eq</a>(&self, __arg_0: &<a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#58' title='goto source code'>[src]</a></span></h4>
|
|||
|
<div class='docblock'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
|
|||
|
</div><h4 id='method.ne' class="method"><span id='ne.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne' class='fnname'>ne</a>(&self, __arg_0: &<a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#58' title='goto source code'>[src]</a></span></h4>
|
|||
|
<div class='docblock'><p>This method tests for <code>!=</code>.</p>
|
|||
|
</div></div><h3 id='impl-Hash' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> for <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code><a href='#impl-Hash' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#58' title='goto source code'>[src]</a></span></h3>
|
|||
|
<div class='impl-items'><h4 id='method.hash' class="method"><span id='hash.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#tymethod.hash' class='fnname'>hash</a><__H: <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html" title="trait core::hash::Hasher">Hasher</a>>(&self, __arg_0: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>__H)</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#58' title='goto source code'>[src]</a></span></h4>
|
|||
|
<div class='docblock'><p>Feeds this value into the given [<code>Hasher</code>]. <a href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#tymethod.hash">Read more</a></p>
|
|||
|
</div><h4 id='method.hash_slice' class="method"><span id='hash_slice.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#method.hash_slice' class='fnname'>hash_slice</a><H>(data: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[Self]</a>, state: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>H) <span class="where fmt-newline">where<br> H: <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html" title="trait core::hash::Hasher">Hasher</a>, </span></code></span><span class='out-of-band'><div class='ghost'></div><div class='since' title='Stable since Rust version 1.3.0'>1.3.0</div><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/hash/mod.rs.html#202-208' title='goto source code'>[src]</a></span></h4>
|
|||
|
<div class='docblock'><p>Feeds a slice of this type into the given [<code>Hasher</code>]. <a href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#method.hash_slice">Read more</a></p>
|
|||
|
</div></div><h3 id='impl-Clone' class='impl'><span class='in-band'><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><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></h3>
|
|||
|
<div class='impl-items'><h4 id='method.clone' class="method"><span id='clone.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone' class='fnname'>clone</a>(&self) -> <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span><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></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'><code>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from' class='fnname'>clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self)</code></span><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#112-114' title='goto source code'>[src]</a></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'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../syn/struct.ExprBox.html" title="struct syn::ExprBox">ExprBox</a>> 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><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></h3>
|
|||
|
<div class='impl-items'><h4 id='method.from' class="method"><span id='from.v' class='invisible'><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>) -> <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span><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></span></h4>
|
|||
|
<div class='docblock'><p>Performs the conversion.</p>
|
|||
|
</div></div><h3 id='impl-From%3CExprInPlace%3E' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../syn/struct.ExprInPlace.html" title="struct syn::ExprInPlace">ExprInPlace</a>> 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><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></h3>
|
|||
|
<div class='impl-items'><h4 id='method.from-1' class="method"><span id='from.v-1' class='invisible'><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>) -> <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span><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></span></h4>
|
|||
|
<div class='docblock'><p>Performs the conversion.</p>
|
|||
|
</div></div><h3 id='impl-From%3CExprArray%3E' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../syn/struct.ExprArray.html" title="struct syn::ExprArray">ExprArray</a>> 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><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></h3>
|
|||
|
<div class='impl-items'><h4 id='method.from-2' class="method"><span id='from.v-2' class='invisible'><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>) -> <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span><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></span></h4>
|
|||
|
<div class='docblock'><p>Performs the conversion.</p>
|
|||
|
</div></div><h3 id='impl-From%3CExprCall%3E' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../syn/struct.ExprCall.html" title="struct syn::ExprCall">ExprCall</a>> 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><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></h3>
|
|||
|
<div class='impl-items'><h4 id='method.from-3' class="method"><span id='from.v-3' class='invisible'><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>) -> <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span><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></span></h4>
|
|||
|
<div class='docblock'><p>Performs the conversion.</p>
|
|||
|
</div></div><h3 id='impl-From%3CExprMethodCall%3E' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../syn/struct.ExprMethodCall.html" title="struct syn::ExprMethodCall">ExprMethodCall</a>> 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><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></h3>
|
|||
|
<div class='impl-items'><h4 id='method.from-4' class="method"><span id='from.v-4' class='invisible'><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>) -> <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span><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></span></h4>
|
|||
|
<div class='docblock'><p>Performs the conversion.</p>
|
|||
|
</div></div><h3 id='impl-From%3CExprTuple%3E' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../syn/struct.ExprTuple.html" title="struct syn::ExprTuple">ExprTuple</a>> 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><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></h3>
|
|||
|
<div class='impl-items'><h4 id='method.from-5' class="method"><span id='from.v-5' class='invisible'><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>) -> <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span><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></span></h4>
|
|||
|
<div class='docblock'><p>Performs the conversion.</p>
|
|||
|
</div></div><h3 id='impl-From%3CExprBinary%3E' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../syn/struct.ExprBinary.html" title="struct syn::ExprBinary">ExprBinary</a>> 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><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></h3>
|
|||
|
<div class='impl-items'><h4 id='method.from-6' class="method"><span id='from.v-6' class='invisible'><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>) -> <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span><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></span></h4>
|
|||
|
<div class='docblock'><p>Performs the conversion.</p>
|
|||
|
</div></div><h3 id='impl-From%3CExprUnary%3E' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../syn/struct.ExprUnary.html" title="struct syn::ExprUnary">ExprUnary</a>> 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><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></h3>
|
|||
|
<div class='impl-items'><h4 id='method.from-7' class="method"><span id='from.v-7' class='invisible'><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>) -> <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span><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></span></h4>
|
|||
|
<div class='docblock'><p>Performs the conversion.</p>
|
|||
|
</div></div><h3 id='impl-From%3CExprLit%3E' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../syn/struct.ExprLit.html" title="struct syn::ExprLit">ExprLit</a>> 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><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></h3>
|
|||
|
<div class='impl-items'><h4 id='method.from-8' class="method"><span id='from.v-8' class='invisible'><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>) -> <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span><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></span></h4>
|
|||
|
<div class='docblock'><p>Performs the conversion.</p>
|
|||
|
</div></div><h3 id='impl-From%3CExprCast%3E' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../syn/struct.ExprCast.html" title="struct syn::ExprCast">ExprCast</a>> 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><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></h3>
|
|||
|
<div class='impl-items'><h4 id='method.from-9' class="method"><span id='from.v-9' class='invisible'><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>) -> <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span><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></span></h4>
|
|||
|
<div class='docblock'><p>Performs the conversion.</p>
|
|||
|
</div></div><h3 id='impl-From%3CExprType%3E' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../syn/struct.ExprType.html" title="struct syn::ExprType">ExprType</a>> 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><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></h3>
|
|||
|
<div class='impl-items'><h4 id='method.from-10' class="method"><span id='from.v-10' class='invisible'><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>) -> <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span><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></span></h4>
|
|||
|
<div class='docblock'><p>Performs the conversion.</p>
|
|||
|
</div></div><h3 id='impl-From%3CExprIf%3E' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../syn/struct.ExprIf.html" title="struct syn::ExprIf">ExprIf</a>> 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><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></h3>
|
|||
|
<div class='impl-items'><h4 id='method.from-11' class="method"><span id='from.v-11' class='invisible'><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>) -> <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span><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></span></h4>
|
|||
|
<div class='docblock'><p>Performs the conversion.</p>
|
|||
|
</div></div><h3 id='impl-From%3CExprIfLet%3E' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../syn/struct.ExprIfLet.html" title="struct syn::ExprIfLet">ExprIfLet</a>> 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><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></h3>
|
|||
|
<div class='impl-items'><h4 id='method.from-12' class="method"><span id='from.v-12' class='invisible'><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>) -> <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span><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></span></h4>
|
|||
|
<div class='docblock'><p>Performs the conversion.</p>
|
|||
|
</div></div><h3 id='impl-From%3CExprWhile%3E' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../syn/struct.ExprWhile.html" title="struct syn::ExprWhile">ExprWhile</a>> 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><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></h3>
|
|||
|
<div class='impl-items'><h4 id='method.from-13' class="method"><span id='from.v-13' class='invisible'><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>) -> <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span><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></span></h4>
|
|||
|
<div class='docblock'><p>Performs the conversion.</p>
|
|||
|
</div></div><h3 id='impl-From%3CExprWhileLet%3E' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../syn/struct.ExprWhileLet.html" title="struct syn::ExprWhileLet">ExprWhileLet</a>> 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><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></h3>
|
|||
|
<div class='impl-items'><h4 id='method.from-14' class="method"><span id='from.v-14' class='invisible'><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>) -> <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span><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></span></h4>
|
|||
|
<div class='docblock'><p>Performs the conversion.</p>
|
|||
|
</div></div><h3 id='impl-From%3CExprForLoop%3E' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../syn/struct.ExprForLoop.html" title="struct syn::ExprForLoop">ExprForLoop</a>> 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><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></h3>
|
|||
|
<div class='impl-items'><h4 id='method.from-15' class="method"><span id='from.v-15' class='invisible'><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>) -> <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span><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></span></h4>
|
|||
|
<div class='docblock'><p>Performs the conversion.</p>
|
|||
|
</div></div><h3 id='impl-From%3CExprLoop%3E' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../syn/struct.ExprLoop.html" title="struct syn::ExprLoop">ExprLoop</a>> 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><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></h3>
|
|||
|
<div class='impl-items'><h4 id='method.from-16' class="method"><span id='from.v-16' class='invisible'><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>) -> <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span><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></span></h4>
|
|||
|
<div class='docblock'><p>Performs the conversion.</p>
|
|||
|
</div></div><h3 id='impl-From%3CExprMatch%3E' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../syn/struct.ExprMatch.html" title="struct syn::ExprMatch">ExprMatch</a>> 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><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></h3>
|
|||
|
<div class='impl-items'><h4 id='method.from-17' class="method"><span id='from.v-17' class='invisible'><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>) -> <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span><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></span></h4>
|
|||
|
<div class='docblock'><p>Performs the conversion.</p>
|
|||
|
</div></div><h3 id='impl-From%3CExprClosure%3E' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../syn/struct.ExprClosure.html" title="struct syn::ExprClosure">ExprClosure</a>> 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><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></h3>
|
|||
|
<div class='impl-items'><h4 id='method.from-18' class="method"><span id='from.v-18' class='invisible'><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>) -> <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span><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></span></h4>
|
|||
|
<div class='docblock'><p>Performs the conversion.</p>
|
|||
|
</div></div><h3 id='impl-From%3CExprUnsafe%3E' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../syn/struct.ExprUnsafe.html" title="struct syn::ExprUnsafe">ExprUnsafe</a>> 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><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></h3>
|
|||
|
<div class='impl-items'><h4 id='method.from-19' class="method"><span id='from.v-19' class='invisible'><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>) -> <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span><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></span></h4>
|
|||
|
<div class='docblock'><p>Performs the conversion.</p>
|
|||
|
</div></div><h3 id='impl-From%3CExprBlock%3E' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../syn/struct.ExprBlock.html" title="struct syn::ExprBlock">ExprBlock</a>> 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><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></h3>
|
|||
|
<div class='impl-items'><h4 id='method.from-20' class="method"><span id='from.v-20' class='invisible'><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>) -> <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span><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></span></h4>
|
|||
|
<div class='docblock'><p>Performs the conversion.</p>
|
|||
|
</div></div><h3 id='impl-From%3CExprAssign%3E' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../syn/struct.ExprAssign.html" title="struct syn::ExprAssign">ExprAssign</a>> 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><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></h3>
|
|||
|
<div class='impl-items'><h4 id='method.from-21' class="method"><span id='from.v-21' class='invisible'><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>) -> <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span><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></span></h4>
|
|||
|
<div class='docblock'><p>Performs the conversion.</p>
|
|||
|
</div></div><h3 id='impl-From%3CExprAssignOp%3E' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../syn/struct.ExprAssignOp.html" title="struct syn::ExprAssignOp">ExprAssignOp</a>> 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><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></h3>
|
|||
|
<div class='impl-items'><h4 id='method.from-22' class="method"><span id='from.v-22' class='invisible'><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>) -> <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span><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></span></h4>
|
|||
|
<div class='docblock'><p>Performs the conversion.</p>
|
|||
|
</div></div><h3 id='impl-From%3CExprField%3E' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../syn/struct.ExprField.html" title="struct syn::ExprField">ExprField</a>> 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><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></h3>
|
|||
|
<div class='impl-items'><h4 id='method.from-23' class="method"><span id='from.v-23' class='invisible'><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>) -> <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span><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></span></h4>
|
|||
|
<div class='docblock'><p>Performs the conversion.</p>
|
|||
|
</div></div><h3 id='impl-From%3CExprIndex%3E' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../syn/struct.ExprIndex.html" title="struct syn::ExprIndex">ExprIndex</a>> 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><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></h3>
|
|||
|
<div class='impl-items'><h4 id='method.from-24' class="method"><span id='from.v-24' class='invisible'><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>) -> <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span><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></span></h4>
|
|||
|
<div class='docblock'><p>Performs the conversion.</p>
|
|||
|
</div></div><h3 id='impl-From%3CExprRange%3E' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../syn/struct.ExprRange.html" title="struct syn::ExprRange">ExprRange</a>> 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><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></h3>
|
|||
|
<div class='impl-items'><h4 id='method.from-25' class="method"><span id='from.v-25' class='invisible'><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>) -> <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span><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></span></h4>
|
|||
|
<div class='docblock'><p>Performs the conversion.</p>
|
|||
|
</div></div><h3 id='impl-From%3CExprPath%3E' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../syn/struct.ExprPath.html" title="struct syn::ExprPath">ExprPath</a>> 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><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></h3>
|
|||
|
<div class='impl-items'><h4 id='method.from-26' class="method"><span id='from.v-26' class='invisible'><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>) -> <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span><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></span></h4>
|
|||
|
<div class='docblock'><p>Performs the conversion.</p>
|
|||
|
</div></div><h3 id='impl-From%3CExprReference%3E' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../syn/struct.ExprReference.html" title="struct syn::ExprReference">ExprReference</a>> 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><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></h3>
|
|||
|
<div class='impl-items'><h4 id='method.from-27' class="method"><span id='from.v-27' class='invisible'><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>) -> <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span><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></span></h4>
|
|||
|
<div class='docblock'><p>Performs the conversion.</p>
|
|||
|
</div></div><h3 id='impl-From%3CExprBreak%3E' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../syn/struct.ExprBreak.html" title="struct syn::ExprBreak">ExprBreak</a>> 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><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></h3>
|
|||
|
<div class='impl-items'><h4 id='method.from-28' class="method"><span id='from.v-28' class='invisible'><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>) -> <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span><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></span></h4>
|
|||
|
<div class='docblock'><p>Performs the conversion.</p>
|
|||
|
</div></div><h3 id='impl-From%3CExprContinue%3E' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../syn/struct.ExprContinue.html" title="struct syn::ExprContinue">ExprContinue</a>> 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><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></h3>
|
|||
|
<div class='impl-items'><h4 id='method.from-29' class="method"><span id='from.v-29' class='invisible'><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>) -> <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span><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></span></h4>
|
|||
|
<div class='docblock'><p>Performs the conversion.</p>
|
|||
|
</div></div><h3 id='impl-From%3CExprReturn%3E' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../syn/struct.ExprReturn.html" title="struct syn::ExprReturn">ExprReturn</a>> 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><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></h3>
|
|||
|
<div class='impl-items'><h4 id='method.from-30' class="method"><span id='from.v-30' class='invisible'><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>) -> <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span><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></span></h4>
|
|||
|
<div class='docblock'><p>Performs the conversion.</p>
|
|||
|
</div></div><h3 id='impl-From%3CExprMacro%3E' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../syn/struct.ExprMacro.html" title="struct syn::ExprMacro">ExprMacro</a>> 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><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></h3>
|
|||
|
<div class='impl-items'><h4 id='method.from-31' class="method"><span id='from.v-31' class='invisible'><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>) -> <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span><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></span></h4>
|
|||
|
<div class='docblock'><p>Performs the conversion.</p>
|
|||
|
</div></div><h3 id='impl-From%3CExprStruct%3E' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../syn/struct.ExprStruct.html" title="struct syn::ExprStruct">ExprStruct</a>> 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><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></h3>
|
|||
|
<div class='impl-items'><h4 id='method.from-32' class="method"><span id='from.v-32' class='invisible'><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>) -> <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span><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></span></h4>
|
|||
|
<div class='docblock'><p>Performs the conversion.</p>
|
|||
|
</div></div><h3 id='impl-From%3CExprRepeat%3E' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../syn/struct.ExprRepeat.html" title="struct syn::ExprRepeat">ExprRepeat</a>> 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><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></h3>
|
|||
|
<div class='impl-items'><h4 id='method.from-33' class="method"><span id='from.v-33' class='invisible'><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>) -> <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span><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></span></h4>
|
|||
|
<div class='docblock'><p>Performs the conversion.</p>
|
|||
|
</div></div><h3 id='impl-From%3CExprParen%3E' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../syn/struct.ExprParen.html" title="struct syn::ExprParen">ExprParen</a>> 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><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></h3>
|
|||
|
<div class='impl-items'><h4 id='method.from-34' class="method"><span id='from.v-34' class='invisible'><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>) -> <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span><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></span></h4>
|
|||
|
<div class='docblock'><p>Performs the conversion.</p>
|
|||
|
</div></div><h3 id='impl-From%3CExprGroup%3E' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../syn/struct.ExprGroup.html" title="struct syn::ExprGroup">ExprGroup</a>> 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><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></h3>
|
|||
|
<div class='impl-items'><h4 id='method.from-35' class="method"><span id='from.v-35' class='invisible'><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>) -> <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span><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></span></h4>
|
|||
|
<div class='docblock'><p>Performs the conversion.</p>
|
|||
|
</div></div><h3 id='impl-From%3CExprTry%3E' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../syn/struct.ExprTry.html" title="struct syn::ExprTry">ExprTry</a>> 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><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></h3>
|
|||
|
<div class='impl-items'><h4 id='method.from-36' class="method"><span id='from.v-36' class='invisible'><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>) -> <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span><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></span></h4>
|
|||
|
<div class='docblock'><p>Performs the conversion.</p>
|
|||
|
</div></div><h3 id='impl-From%3CExprCatch%3E' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../syn/struct.ExprCatch.html" title="struct syn::ExprCatch">ExprCatch</a>> 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><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></h3>
|
|||
|
<div class='impl-items'><h4 id='method.from-37' class="method"><span id='from.v-37' class='invisible'><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>) -> <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span><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></span></h4>
|
|||
|
<div class='docblock'><p>Performs the conversion.</p>
|
|||
|
</div></div><h3 id='impl-From%3CExprYield%3E' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../syn/struct.ExprYield.html" title="struct syn::ExprYield">ExprYield</a>> 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><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></h3>
|
|||
|
<div class='impl-items'><h4 id='method.from-38' class="method"><span id='from.v-38' class='invisible'><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>) -> <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span><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></span></h4>
|
|||
|
<div class='docblock'><p>Performs the conversion.</p>
|
|||
|
</div></div><h3 id='impl-From%3CExprVerbatim%3E' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../syn/struct.ExprVerbatim.html" title="struct syn::ExprVerbatim">ExprVerbatim</a>> 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><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></h3>
|
|||
|
<div class='impl-items'><h4 id='method.from-39' class="method"><span id='from.v-39' class='invisible'><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>) -> <a class="enum" href="../syn/enum.Expr.html" title="enum syn::Expr">Expr</a></code></span><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></span></h4>
|
|||
|
<div class='docblock'><p>Performs the conversion.</p>
|
|||
|
</div></div><h3 id='impl-ToTokens' class='impl'><span class='in-band'><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><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#138-144' title='goto source code'>[src]</a></span></h3>
|
|||
|
<div class='impl-items'><h4 id='method.to_tokens' class="method"><span id='to_tokens.v' class='invisible'><code>fn <a href='../quote/to_tokens/trait.ToTokens.html#tymethod.to_tokens' class='fnname'>to_tokens</a>(&self, tokens: &mut <a class="struct" href="../proc_macro2/struct.TokenStream.html" title="struct proc_macro2::TokenStream">TokenStream</a>)</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/syn/macros.rs.html#139-143' title='goto source code'>[src]</a></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'><code>fn <a href='../quote/to_tokens/trait.ToTokens.html#method.into_token_stream' class='fnname'>into_token_stream</a>(self) -> <a class="struct" href="../proc_macro2/struct.TokenStream.html" title="struct proc_macro2::TokenStream">TokenStream</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/quote/to_tokens.rs.html#65-72' title='goto source code'>[src]</a></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></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>⏎</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>
|