931 lines
No EOL
46 KiB
HTML
931 lines
No EOL
46 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 `token` mod in crate `syn`.">
|
||
<meta name="keywords" content="rust, rustlang, rust-lang, token">
|
||
|
||
<title>syn::token - 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 mod">
|
||
<!--[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'>Module token</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li></ul></div><p class='location'><a href='../index.html'>syn</a></p><script>window.sidebarCurrent = {name: 'token', ty: 'mod', relpath: '../'};</script><script defer src="../sidebar-items.js"></script></div>
|
||
</nav>
|
||
|
||
<div class="theme-picker">
|
||
<button id="theme-picker" aria-label="Pick another theme!">
|
||
<img src="../../brush.svg" width="18" alt="Pick another theme!">
|
||
</button>
|
||
<div id="theme-choices"></div>
|
||
</div>
|
||
<script src="../../theme.js"></script>
|
||
<nav class="sub">
|
||
<form class="search-form js-only">
|
||
<div class="search-container">
|
||
<input class="search-input" name="search"
|
||
autocomplete="off"
|
||
placeholder="Click or press ‘S’ to search, ‘?’ for more options…"
|
||
type="search">
|
||
</div>
|
||
</form>
|
||
</nav>
|
||
|
||
<section id='main' class="content">
|
||
<h1 class='fqn'><span class='in-band'>Module <a href='../index.html'>syn</a>::<wbr><a class="mod" href=''>token</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/token.rs.html#9-889' title='goto source code'>[src]</a></span></h1>
|
||
<div class='docblock'><p>Tokens representing Rust punctuation, keywords, and delimiters.</p>
|
||
<p>The type names in this module can be difficult to keep straight, so we
|
||
prefer to use the <a href="../macro.Token.html"><code>Token!</code></a> macro instead. This is a type-macro that
|
||
expands to the token type of the given token.</p>
|
||
<h1 id="example" class="section-header"><a href="#example">Example</a></h1>
|
||
<p>The <a href="../struct.ItemStatic.html"><code>ItemStatic</code></a> syntax tree node is defined like this.</p>
|
||
|
||
<pre class="rust rust-example-rendered">
|
||
<span class="kw">pub</span> <span class="kw">struct</span> <span class="ident">ItemStatic</span> {
|
||
<span class="kw">pub</span> <span class="ident">attrs</span>: <span class="ident">Vec</span><span class="op"><</span><span class="ident">Attribute</span><span class="op">></span>,
|
||
<span class="kw">pub</span> <span class="ident">vis</span>: <span class="ident">Visibility</span>,
|
||
<span class="kw">pub</span> <span class="ident">static_token</span>: <span class="macro">Token</span><span class="macro">!</span>[<span class="kw">static</span>],
|
||
<span class="kw">pub</span> <span class="ident">mutability</span>: <span class="prelude-ty">Option</span><span class="op"><</span><span class="macro">Token</span><span class="macro">!</span>[<span class="kw-2">mut</span>]<span class="op">></span>,
|
||
<span class="kw">pub</span> <span class="ident">ident</span>: <span class="ident">Ident</span>,
|
||
<span class="kw">pub</span> <span class="ident">colon_token</span>: <span class="macro">Token</span><span class="macro">!</span>[:],
|
||
<span class="kw">pub</span> <span class="ident">ty</span>: <span class="ident">Box</span><span class="op"><</span><span class="ident">Type</span><span class="op">></span>,
|
||
<span class="kw">pub</span> <span class="ident">eq_token</span>: <span class="macro">Token</span><span class="macro">!</span>[<span class="op">=</span>],
|
||
<span class="kw">pub</span> <span class="ident">expr</span>: <span class="ident">Box</span><span class="op"><</span><span class="ident">Expr</span><span class="op">></span>,
|
||
<span class="kw">pub</span> <span class="ident">semi_token</span>: <span class="macro">Token</span><span class="macro">!</span>[;],
|
||
}</pre>
|
||
<h1 id="parsing" class="section-header"><a href="#parsing">Parsing</a></h1>
|
||
<p>These tokens can be parsed using the <a href="../synom/trait.Synom.html"><code>Synom</code></a> trait and the parser
|
||
combinator macros <a href="../macro.punct.html"><code>punct!</code></a>, <a href="../macro.keyword.html"><code>keyword!</code></a>, <a href="../macro.parens.html"><code>parens!</code></a>, <a href="../macro.braces.html"><code>braces!</code></a>, and
|
||
<a href="../macro.brackets.html"><code>brackets!</code></a>.</p>
|
||
|
||
<pre class="rust rust-example-rendered">
|
||
<span class="attribute">#[<span class="ident">macro_use</span>]</span>
|
||
<span class="kw">extern</span> <span class="kw">crate</span> <span class="ident">syn</span>;
|
||
|
||
<span class="kw">use</span> <span class="ident">syn</span>::<span class="ident">synom</span>::<span class="ident">Synom</span>;
|
||
<span class="kw">use</span> <span class="ident">syn</span>::{<span class="ident">Attribute</span>, <span class="ident">Visibility</span>, <span class="ident">Ident</span>, <span class="ident">Type</span>, <span class="ident">Expr</span>};
|
||
|
||
<span class="comment">// Parse the ItemStatic struct shown above.</span>
|
||
<span class="kw">impl</span> <span class="ident">Synom</span> <span class="kw">for</span> <span class="ident">ItemStatic</span> {
|
||
<span class="macro">named</span><span class="macro">!</span>(<span class="ident">parse</span> <span class="op">-></span> <span class="self">Self</span>, <span class="macro">do_parse</span><span class="macro">!</span>(
|
||
<span class="ident">attrs</span>: <span class="macro">many0</span><span class="macro">!</span>(<span class="ident">Attribute</span>::<span class="ident">parse_outer</span>) <span class="op">>></span>
|
||
<span class="ident">vis</span>: <span class="macro">syn</span><span class="macro">!</span>(<span class="ident">Visibility</span>) <span class="op">>></span>
|
||
<span class="ident">static_token</span>: <span class="macro">keyword</span><span class="macro">!</span>(<span class="kw">static</span>) <span class="op">>></span>
|
||
<span class="ident">mutability</span>: <span class="macro">option</span><span class="macro">!</span>(<span class="macro">keyword</span><span class="macro">!</span>(<span class="kw-2">mut</span>)) <span class="op">>></span>
|
||
<span class="ident">ident</span>: <span class="macro">syn</span><span class="macro">!</span>(<span class="ident">Ident</span>) <span class="op">>></span>
|
||
<span class="ident">colon_token</span>: <span class="macro">punct</span><span class="macro">!</span>(:) <span class="op">>></span>
|
||
<span class="ident">ty</span>: <span class="macro">syn</span><span class="macro">!</span>(<span class="ident">Type</span>) <span class="op">>></span>
|
||
<span class="ident">eq_token</span>: <span class="macro">punct</span><span class="macro">!</span>(<span class="op">=</span>) <span class="op">>></span>
|
||
<span class="ident">expr</span>: <span class="macro">syn</span><span class="macro">!</span>(<span class="ident">Expr</span>) <span class="op">>></span>
|
||
<span class="ident">semi_token</span>: <span class="macro">punct</span><span class="macro">!</span>(;) <span class="op">>></span>
|
||
(<span class="ident">ItemStatic</span> {
|
||
<span class="ident">attrs</span>, <span class="ident">vis</span>, <span class="ident">static_token</span>, <span class="ident">mutability</span>, <span class="ident">ident</span>, <span class="ident">colon_token</span>,
|
||
<span class="ident">ty</span>: <span class="ident">Box</span>::<span class="ident">new</span>(<span class="ident">ty</span>), <span class="ident">eq_token</span>, <span class="ident">expr</span>: <span class="ident">Box</span>::<span class="ident">new</span>(<span class="ident">expr</span>), <span class="ident">semi_token</span>,
|
||
})
|
||
));
|
||
}</pre>
|
||
</div><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
|
||
<table>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Add.html"
|
||
title='struct syn::token::Add'>Add</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>+</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.AddEq.html"
|
||
title='struct syn::token::AddEq'>AddEq</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>+=</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.And.html"
|
||
title='struct syn::token::And'>And</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>&</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.AndAnd.html"
|
||
title='struct syn::token::AndAnd'>AndAnd</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>&&</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.AndEq.html"
|
||
title='struct syn::token::AndEq'>AndEq</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>&=</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Apostrophe.html"
|
||
title='struct syn::token::Apostrophe'>Apostrophe</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>'</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.As.html"
|
||
title='struct syn::token::As'>As</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>as</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Async.html"
|
||
title='struct syn::token::Async'>Async</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>async</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.At.html"
|
||
title='struct syn::token::At'>At</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>@</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Auto.html"
|
||
title='struct syn::token::Auto'>Auto</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>auto</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Bang.html"
|
||
title='struct syn::token::Bang'>Bang</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>!</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Box.html"
|
||
title='struct syn::token::Box'>Box</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>box</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Brace.html"
|
||
title='struct syn::token::Brace'>Brace</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>{...}</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Bracket.html"
|
||
title='struct syn::token::Bracket'>Bracket</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>[...]</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Break.html"
|
||
title='struct syn::token::Break'>Break</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>break</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.CapSelf.html"
|
||
title='struct syn::token::CapSelf'>CapSelf</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>Self</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Caret.html"
|
||
title='struct syn::token::Caret'>Caret</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>^</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.CaretEq.html"
|
||
title='struct syn::token::CaretEq'>CaretEq</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>^=</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Catch.html"
|
||
title='struct syn::token::Catch'>Catch</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>catch</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Colon.html"
|
||
title='struct syn::token::Colon'>Colon</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>:</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Colon2.html"
|
||
title='struct syn::token::Colon2'>Colon2</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>::</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Comma.html"
|
||
title='struct syn::token::Comma'>Comma</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>,</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Const.html"
|
||
title='struct syn::token::Const'>Const</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>const</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Continue.html"
|
||
title='struct syn::token::Continue'>Continue</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>continue</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Crate.html"
|
||
title='struct syn::token::Crate'>Crate</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>crate</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Default.html"
|
||
title='struct syn::token::Default'>Default</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>default</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Div.html"
|
||
title='struct syn::token::Div'>Div</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>/</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.DivEq.html"
|
||
title='struct syn::token::DivEq'>DivEq</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>/=</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Do.html"
|
||
title='struct syn::token::Do'>Do</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>do</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Dollar.html"
|
||
title='struct syn::token::Dollar'>Dollar</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>$</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Dot.html"
|
||
title='struct syn::token::Dot'>Dot</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>.</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Dot2.html"
|
||
title='struct syn::token::Dot2'>Dot2</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>..</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Dot3.html"
|
||
title='struct syn::token::Dot3'>Dot3</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>...</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.DotDotEq.html"
|
||
title='struct syn::token::DotDotEq'>DotDotEq</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>..=</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Dyn.html"
|
||
title='struct syn::token::Dyn'>Dyn</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>dyn</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Else.html"
|
||
title='struct syn::token::Else'>Else</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>else</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Enum.html"
|
||
title='struct syn::token::Enum'>Enum</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>enum</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Eq.html"
|
||
title='struct syn::token::Eq'>Eq</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>=</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.EqEq.html"
|
||
title='struct syn::token::EqEq'>EqEq</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>==</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Extern.html"
|
||
title='struct syn::token::Extern'>Extern</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>extern</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.FatArrow.html"
|
||
title='struct syn::token::FatArrow'>FatArrow</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>=></code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Fn.html"
|
||
title='struct syn::token::Fn'>Fn</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>fn</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.For.html"
|
||
title='struct syn::token::For'>For</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>for</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Ge.html"
|
||
title='struct syn::token::Ge'>Ge</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>>=</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Group.html"
|
||
title='struct syn::token::Group'>Group</a></td>
|
||
<td class='docblock-short'>
|
||
<p>None-delimited group</p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Gt.html"
|
||
title='struct syn::token::Gt'>Gt</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>></code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.If.html"
|
||
title='struct syn::token::If'>If</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>if</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Impl.html"
|
||
title='struct syn::token::Impl'>Impl</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>impl</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.In.html"
|
||
title='struct syn::token::In'>In</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>in</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.LArrow.html"
|
||
title='struct syn::token::LArrow'>LArrow</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code><-</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Le.html"
|
||
title='struct syn::token::Le'>Le</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code><=</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Let.html"
|
||
title='struct syn::token::Let'>Let</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>let</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Loop.html"
|
||
title='struct syn::token::Loop'>Loop</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>loop</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Lt.html"
|
||
title='struct syn::token::Lt'>Lt</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code><</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Macro.html"
|
||
title='struct syn::token::Macro'>Macro</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>macro</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Match.html"
|
||
title='struct syn::token::Match'>Match</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>match</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Mod.html"
|
||
title='struct syn::token::Mod'>Mod</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>mod</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Move.html"
|
||
title='struct syn::token::Move'>Move</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>move</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.MulEq.html"
|
||
title='struct syn::token::MulEq'>MulEq</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>*=</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Mut.html"
|
||
title='struct syn::token::Mut'>Mut</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>mut</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Ne.html"
|
||
title='struct syn::token::Ne'>Ne</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>!=</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Or.html"
|
||
title='struct syn::token::Or'>Or</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>|</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.OrEq.html"
|
||
title='struct syn::token::OrEq'>OrEq</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>|=</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.OrOr.html"
|
||
title='struct syn::token::OrOr'>OrOr</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>||</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Paren.html"
|
||
title='struct syn::token::Paren'>Paren</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>(...)</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Pound.html"
|
||
title='struct syn::token::Pound'>Pound</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>#</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Pub.html"
|
||
title='struct syn::token::Pub'>Pub</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>pub</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Question.html"
|
||
title='struct syn::token::Question'>Question</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>?</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.RArrow.html"
|
||
title='struct syn::token::RArrow'>RArrow</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>-></code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Ref.html"
|
||
title='struct syn::token::Ref'>Ref</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>ref</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Rem.html"
|
||
title='struct syn::token::Rem'>Rem</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>%</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.RemEq.html"
|
||
title='struct syn::token::RemEq'>RemEq</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>%=</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Return.html"
|
||
title='struct syn::token::Return'>Return</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>return</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Self_.html"
|
||
title='struct syn::token::Self_'>Self_</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>self</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Semi.html"
|
||
title='struct syn::token::Semi'>Semi</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>;</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Shl.html"
|
||
title='struct syn::token::Shl'>Shl</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code><<</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.ShlEq.html"
|
||
title='struct syn::token::ShlEq'>ShlEq</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code><<=</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Shr.html"
|
||
title='struct syn::token::Shr'>Shr</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>>></code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.ShrEq.html"
|
||
title='struct syn::token::ShrEq'>ShrEq</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>>>=</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Star.html"
|
||
title='struct syn::token::Star'>Star</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>*</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Static.html"
|
||
title='struct syn::token::Static'>Static</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>static</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Struct.html"
|
||
title='struct syn::token::Struct'>Struct</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>struct</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Sub.html"
|
||
title='struct syn::token::Sub'>Sub</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>-</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.SubEq.html"
|
||
title='struct syn::token::SubEq'>SubEq</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>-=</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Super.html"
|
||
title='struct syn::token::Super'>Super</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>super</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Trait.html"
|
||
title='struct syn::token::Trait'>Trait</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>trait</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Type.html"
|
||
title='struct syn::token::Type'>Type</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>type</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Underscore.html"
|
||
title='struct syn::token::Underscore'>Underscore</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>_</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Union.html"
|
||
title='struct syn::token::Union'>Union</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>union</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Unsafe.html"
|
||
title='struct syn::token::Unsafe'>Unsafe</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>unsafe</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Use.html"
|
||
title='struct syn::token::Use'>Use</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>use</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Where.html"
|
||
title='struct syn::token::Where'>Where</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>where</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.While.html"
|
||
title='struct syn::token::While'>While</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>while</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Yield.html"
|
||
title='struct syn::token::Yield'>Yield</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>yield</code></p>
|
||
|
||
</td>
|
||
</tr></table></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> |