index.html 45 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805
  1. <!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="../../light.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">&#9776;</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"><a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Module <a href='../index.html'>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'>&#x2212;</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>
  2. <p>The type names in this module can be difficult to keep straight, so we
  3. prefer to use the <a href="../macro.Token.html"><code>Token!</code></a> macro instead. This is a type-macro that
  4. expands to the token type of the given token.</p>
  5. <h1 id="example" class="section-header"><a href="#example">Example</a></h1>
  6. <p>The <a href="../struct.ItemStatic.html"><code>ItemStatic</code></a> syntax tree node is defined like this.</p>
  7. <pre class="rust rust-example-rendered">
  8. <span class="kw">pub</span> <span class="kw">struct</span> <span class="ident">ItemStatic</span> {
  9. <span class="kw">pub</span> <span class="ident">attrs</span>: <span class="ident">Vec</span><span class="op">&lt;</span><span class="ident">Attribute</span><span class="op">&gt;</span>,
  10. <span class="kw">pub</span> <span class="ident">vis</span>: <span class="ident">Visibility</span>,
  11. <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>],
  12. <span class="kw">pub</span> <span class="ident">mutability</span>: <span class="prelude-ty">Option</span><span class="op">&lt;</span><span class="macro">Token</span><span class="macro">!</span>[<span class="kw-2">mut</span>]<span class="op">&gt;</span>,
  13. <span class="kw">pub</span> <span class="ident">ident</span>: <span class="ident">Ident</span>,
  14. <span class="kw">pub</span> <span class="ident">colon_token</span>: <span class="macro">Token</span><span class="macro">!</span>[:],
  15. <span class="kw">pub</span> <span class="ident">ty</span>: <span class="ident">Box</span><span class="op">&lt;</span><span class="ident">Type</span><span class="op">&gt;</span>,
  16. <span class="kw">pub</span> <span class="ident">eq_token</span>: <span class="macro">Token</span><span class="macro">!</span>[<span class="op">=</span>],
  17. <span class="kw">pub</span> <span class="ident">expr</span>: <span class="ident">Box</span><span class="op">&lt;</span><span class="ident">Expr</span><span class="op">&gt;</span>,
  18. <span class="kw">pub</span> <span class="ident">semi_token</span>: <span class="macro">Token</span><span class="macro">!</span>[;],
  19. }</pre>
  20. <h1 id="parsing" class="section-header"><a href="#parsing">Parsing</a></h1>
  21. <p>These tokens can be parsed using the <a href="../synom/trait.Synom.html"><code>Synom</code></a> trait and the parser
  22. 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
  23. <a href="../macro.brackets.html"><code>brackets!</code></a>.</p>
  24. <pre class="rust rust-example-rendered">
  25. <span class="attribute">#[<span class="ident">macro_use</span>]</span>
  26. <span class="kw">extern</span> <span class="kw">crate</span> <span class="ident">syn</span>;
  27. <span class="kw">use</span> <span class="ident">syn</span>::<span class="ident">synom</span>::<span class="ident">Synom</span>;
  28. <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>};
  29. <span class="comment">// Parse the ItemStatic struct shown above.</span>
  30. <span class="kw">impl</span> <span class="ident">Synom</span> <span class="kw">for</span> <span class="ident">ItemStatic</span> {
  31. <span class="macro">named</span><span class="macro">!</span>(<span class="ident">parse</span> <span class="op">-&gt;</span> <span class="self">Self</span>, <span class="macro">do_parse</span><span class="macro">!</span>(
  32. <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">&gt;&gt;</span>
  33. <span class="ident">vis</span>: <span class="macro">syn</span><span class="macro">!</span>(<span class="ident">Visibility</span>) <span class="op">&gt;&gt;</span>
  34. <span class="ident">static_token</span>: <span class="macro">keyword</span><span class="macro">!</span>(<span class="kw">static</span>) <span class="op">&gt;&gt;</span>
  35. <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">&gt;&gt;</span>
  36. <span class="ident">ident</span>: <span class="macro">syn</span><span class="macro">!</span>(<span class="ident">Ident</span>) <span class="op">&gt;&gt;</span>
  37. <span class="ident">colon_token</span>: <span class="macro">punct</span><span class="macro">!</span>(:) <span class="op">&gt;&gt;</span>
  38. <span class="ident">ty</span>: <span class="macro">syn</span><span class="macro">!</span>(<span class="ident">Type</span>) <span class="op">&gt;&gt;</span>
  39. <span class="ident">eq_token</span>: <span class="macro">punct</span><span class="macro">!</span>(<span class="op">=</span>) <span class="op">&gt;&gt;</span>
  40. <span class="ident">expr</span>: <span class="macro">syn</span><span class="macro">!</span>(<span class="ident">Expr</span>) <span class="op">&gt;&gt;</span>
  41. <span class="ident">semi_token</span>: <span class="macro">punct</span><span class="macro">!</span>(;) <span class="op">&gt;&gt;</span>
  42. (<span class="ident">ItemStatic</span> {
  43. <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>,
  44. <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>,
  45. })
  46. ));
  47. }</pre>
  48. </div><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
  49. <table>
  50. <tr class=' module-item'>
  51. <td><a class="struct" href="struct.Add.html"
  52. title='struct syn::token::Add'>Add</a></td>
  53. <td class='docblock-short'>
  54. <p><code>+</code></p>
  55. </td>
  56. </tr>
  57. <tr class=' module-item'>
  58. <td><a class="struct" href="struct.AddEq.html"
  59. title='struct syn::token::AddEq'>AddEq</a></td>
  60. <td class='docblock-short'>
  61. <p><code>+=</code></p>
  62. </td>
  63. </tr>
  64. <tr class=' module-item'>
  65. <td><a class="struct" href="struct.And.html"
  66. title='struct syn::token::And'>And</a></td>
  67. <td class='docblock-short'>
  68. <p><code>&amp;</code></p>
  69. </td>
  70. </tr>
  71. <tr class=' module-item'>
  72. <td><a class="struct" href="struct.AndAnd.html"
  73. title='struct syn::token::AndAnd'>AndAnd</a></td>
  74. <td class='docblock-short'>
  75. <p><code>&amp;&amp;</code></p>
  76. </td>
  77. </tr>
  78. <tr class=' module-item'>
  79. <td><a class="struct" href="struct.AndEq.html"
  80. title='struct syn::token::AndEq'>AndEq</a></td>
  81. <td class='docblock-short'>
  82. <p><code>&amp;=</code></p>
  83. </td>
  84. </tr>
  85. <tr class=' module-item'>
  86. <td><a class="struct" href="struct.Apostrophe.html"
  87. title='struct syn::token::Apostrophe'>Apostrophe</a></td>
  88. <td class='docblock-short'>
  89. <p><code>'</code></p>
  90. </td>
  91. </tr>
  92. <tr class=' module-item'>
  93. <td><a class="struct" href="struct.As.html"
  94. title='struct syn::token::As'>As</a></td>
  95. <td class='docblock-short'>
  96. <p><code>as</code></p>
  97. </td>
  98. </tr>
  99. <tr class=' module-item'>
  100. <td><a class="struct" href="struct.Async.html"
  101. title='struct syn::token::Async'>Async</a></td>
  102. <td class='docblock-short'>
  103. <p><code>async</code></p>
  104. </td>
  105. </tr>
  106. <tr class=' module-item'>
  107. <td><a class="struct" href="struct.At.html"
  108. title='struct syn::token::At'>At</a></td>
  109. <td class='docblock-short'>
  110. <p><code>@</code></p>
  111. </td>
  112. </tr>
  113. <tr class=' module-item'>
  114. <td><a class="struct" href="struct.Auto.html"
  115. title='struct syn::token::Auto'>Auto</a></td>
  116. <td class='docblock-short'>
  117. <p><code>auto</code></p>
  118. </td>
  119. </tr>
  120. <tr class=' module-item'>
  121. <td><a class="struct" href="struct.Bang.html"
  122. title='struct syn::token::Bang'>Bang</a></td>
  123. <td class='docblock-short'>
  124. <p><code>!</code></p>
  125. </td>
  126. </tr>
  127. <tr class=' module-item'>
  128. <td><a class="struct" href="struct.Box.html"
  129. title='struct syn::token::Box'>Box</a></td>
  130. <td class='docblock-short'>
  131. <p><code>box</code></p>
  132. </td>
  133. </tr>
  134. <tr class=' module-item'>
  135. <td><a class="struct" href="struct.Brace.html"
  136. title='struct syn::token::Brace'>Brace</a></td>
  137. <td class='docblock-short'>
  138. <p><code>{...}</code></p>
  139. </td>
  140. </tr>
  141. <tr class=' module-item'>
  142. <td><a class="struct" href="struct.Bracket.html"
  143. title='struct syn::token::Bracket'>Bracket</a></td>
  144. <td class='docblock-short'>
  145. <p><code>[...]</code></p>
  146. </td>
  147. </tr>
  148. <tr class=' module-item'>
  149. <td><a class="struct" href="struct.Break.html"
  150. title='struct syn::token::Break'>Break</a></td>
  151. <td class='docblock-short'>
  152. <p><code>break</code></p>
  153. </td>
  154. </tr>
  155. <tr class=' module-item'>
  156. <td><a class="struct" href="struct.CapSelf.html"
  157. title='struct syn::token::CapSelf'>CapSelf</a></td>
  158. <td class='docblock-short'>
  159. <p><code>Self</code></p>
  160. </td>
  161. </tr>
  162. <tr class=' module-item'>
  163. <td><a class="struct" href="struct.Caret.html"
  164. title='struct syn::token::Caret'>Caret</a></td>
  165. <td class='docblock-short'>
  166. <p><code>^</code></p>
  167. </td>
  168. </tr>
  169. <tr class=' module-item'>
  170. <td><a class="struct" href="struct.CaretEq.html"
  171. title='struct syn::token::CaretEq'>CaretEq</a></td>
  172. <td class='docblock-short'>
  173. <p><code>^=</code></p>
  174. </td>
  175. </tr>
  176. <tr class=' module-item'>
  177. <td><a class="struct" href="struct.Catch.html"
  178. title='struct syn::token::Catch'>Catch</a></td>
  179. <td class='docblock-short'>
  180. <p><code>catch</code></p>
  181. </td>
  182. </tr>
  183. <tr class=' module-item'>
  184. <td><a class="struct" href="struct.Colon.html"
  185. title='struct syn::token::Colon'>Colon</a></td>
  186. <td class='docblock-short'>
  187. <p><code>:</code></p>
  188. </td>
  189. </tr>
  190. <tr class=' module-item'>
  191. <td><a class="struct" href="struct.Colon2.html"
  192. title='struct syn::token::Colon2'>Colon2</a></td>
  193. <td class='docblock-short'>
  194. <p><code>::</code></p>
  195. </td>
  196. </tr>
  197. <tr class=' module-item'>
  198. <td><a class="struct" href="struct.Comma.html"
  199. title='struct syn::token::Comma'>Comma</a></td>
  200. <td class='docblock-short'>
  201. <p><code>,</code></p>
  202. </td>
  203. </tr>
  204. <tr class=' module-item'>
  205. <td><a class="struct" href="struct.Const.html"
  206. title='struct syn::token::Const'>Const</a></td>
  207. <td class='docblock-short'>
  208. <p><code>const</code></p>
  209. </td>
  210. </tr>
  211. <tr class=' module-item'>
  212. <td><a class="struct" href="struct.Continue.html"
  213. title='struct syn::token::Continue'>Continue</a></td>
  214. <td class='docblock-short'>
  215. <p><code>continue</code></p>
  216. </td>
  217. </tr>
  218. <tr class=' module-item'>
  219. <td><a class="struct" href="struct.Crate.html"
  220. title='struct syn::token::Crate'>Crate</a></td>
  221. <td class='docblock-short'>
  222. <p><code>crate</code></p>
  223. </td>
  224. </tr>
  225. <tr class=' module-item'>
  226. <td><a class="struct" href="struct.Default.html"
  227. title='struct syn::token::Default'>Default</a></td>
  228. <td class='docblock-short'>
  229. <p><code>default</code></p>
  230. </td>
  231. </tr>
  232. <tr class=' module-item'>
  233. <td><a class="struct" href="struct.Div.html"
  234. title='struct syn::token::Div'>Div</a></td>
  235. <td class='docblock-short'>
  236. <p><code>/</code></p>
  237. </td>
  238. </tr>
  239. <tr class=' module-item'>
  240. <td><a class="struct" href="struct.DivEq.html"
  241. title='struct syn::token::DivEq'>DivEq</a></td>
  242. <td class='docblock-short'>
  243. <p><code>/=</code></p>
  244. </td>
  245. </tr>
  246. <tr class=' module-item'>
  247. <td><a class="struct" href="struct.Do.html"
  248. title='struct syn::token::Do'>Do</a></td>
  249. <td class='docblock-short'>
  250. <p><code>do</code></p>
  251. </td>
  252. </tr>
  253. <tr class=' module-item'>
  254. <td><a class="struct" href="struct.Dollar.html"
  255. title='struct syn::token::Dollar'>Dollar</a></td>
  256. <td class='docblock-short'>
  257. <p><code>$</code></p>
  258. </td>
  259. </tr>
  260. <tr class=' module-item'>
  261. <td><a class="struct" href="struct.Dot.html"
  262. title='struct syn::token::Dot'>Dot</a></td>
  263. <td class='docblock-short'>
  264. <p><code>.</code></p>
  265. </td>
  266. </tr>
  267. <tr class=' module-item'>
  268. <td><a class="struct" href="struct.Dot2.html"
  269. title='struct syn::token::Dot2'>Dot2</a></td>
  270. <td class='docblock-short'>
  271. <p><code>..</code></p>
  272. </td>
  273. </tr>
  274. <tr class=' module-item'>
  275. <td><a class="struct" href="struct.Dot3.html"
  276. title='struct syn::token::Dot3'>Dot3</a></td>
  277. <td class='docblock-short'>
  278. <p><code>...</code></p>
  279. </td>
  280. </tr>
  281. <tr class=' module-item'>
  282. <td><a class="struct" href="struct.DotDotEq.html"
  283. title='struct syn::token::DotDotEq'>DotDotEq</a></td>
  284. <td class='docblock-short'>
  285. <p><code>..=</code></p>
  286. </td>
  287. </tr>
  288. <tr class=' module-item'>
  289. <td><a class="struct" href="struct.Dyn.html"
  290. title='struct syn::token::Dyn'>Dyn</a></td>
  291. <td class='docblock-short'>
  292. <p><code>dyn</code></p>
  293. </td>
  294. </tr>
  295. <tr class=' module-item'>
  296. <td><a class="struct" href="struct.Else.html"
  297. title='struct syn::token::Else'>Else</a></td>
  298. <td class='docblock-short'>
  299. <p><code>else</code></p>
  300. </td>
  301. </tr>
  302. <tr class=' module-item'>
  303. <td><a class="struct" href="struct.Enum.html"
  304. title='struct syn::token::Enum'>Enum</a></td>
  305. <td class='docblock-short'>
  306. <p><code>enum</code></p>
  307. </td>
  308. </tr>
  309. <tr class=' module-item'>
  310. <td><a class="struct" href="struct.Eq.html"
  311. title='struct syn::token::Eq'>Eq</a></td>
  312. <td class='docblock-short'>
  313. <p><code>=</code></p>
  314. </td>
  315. </tr>
  316. <tr class=' module-item'>
  317. <td><a class="struct" href="struct.EqEq.html"
  318. title='struct syn::token::EqEq'>EqEq</a></td>
  319. <td class='docblock-short'>
  320. <p><code>==</code></p>
  321. </td>
  322. </tr>
  323. <tr class=' module-item'>
  324. <td><a class="struct" href="struct.Extern.html"
  325. title='struct syn::token::Extern'>Extern</a></td>
  326. <td class='docblock-short'>
  327. <p><code>extern</code></p>
  328. </td>
  329. </tr>
  330. <tr class=' module-item'>
  331. <td><a class="struct" href="struct.FatArrow.html"
  332. title='struct syn::token::FatArrow'>FatArrow</a></td>
  333. <td class='docblock-short'>
  334. <p><code>=&gt;</code></p>
  335. </td>
  336. </tr>
  337. <tr class=' module-item'>
  338. <td><a class="struct" href="struct.Fn.html"
  339. title='struct syn::token::Fn'>Fn</a></td>
  340. <td class='docblock-short'>
  341. <p><code>fn</code></p>
  342. </td>
  343. </tr>
  344. <tr class=' module-item'>
  345. <td><a class="struct" href="struct.For.html"
  346. title='struct syn::token::For'>For</a></td>
  347. <td class='docblock-short'>
  348. <p><code>for</code></p>
  349. </td>
  350. </tr>
  351. <tr class=' module-item'>
  352. <td><a class="struct" href="struct.Ge.html"
  353. title='struct syn::token::Ge'>Ge</a></td>
  354. <td class='docblock-short'>
  355. <p><code>&gt;=</code></p>
  356. </td>
  357. </tr>
  358. <tr class=' module-item'>
  359. <td><a class="struct" href="struct.Group.html"
  360. title='struct syn::token::Group'>Group</a></td>
  361. <td class='docblock-short'>
  362. <p>None-delimited group</p>
  363. </td>
  364. </tr>
  365. <tr class=' module-item'>
  366. <td><a class="struct" href="struct.Gt.html"
  367. title='struct syn::token::Gt'>Gt</a></td>
  368. <td class='docblock-short'>
  369. <p><code>&gt;</code></p>
  370. </td>
  371. </tr>
  372. <tr class=' module-item'>
  373. <td><a class="struct" href="struct.If.html"
  374. title='struct syn::token::If'>If</a></td>
  375. <td class='docblock-short'>
  376. <p><code>if</code></p>
  377. </td>
  378. </tr>
  379. <tr class=' module-item'>
  380. <td><a class="struct" href="struct.Impl.html"
  381. title='struct syn::token::Impl'>Impl</a></td>
  382. <td class='docblock-short'>
  383. <p><code>impl</code></p>
  384. </td>
  385. </tr>
  386. <tr class=' module-item'>
  387. <td><a class="struct" href="struct.In.html"
  388. title='struct syn::token::In'>In</a></td>
  389. <td class='docblock-short'>
  390. <p><code>in</code></p>
  391. </td>
  392. </tr>
  393. <tr class=' module-item'>
  394. <td><a class="struct" href="struct.LArrow.html"
  395. title='struct syn::token::LArrow'>LArrow</a></td>
  396. <td class='docblock-short'>
  397. <p><code>&lt;-</code></p>
  398. </td>
  399. </tr>
  400. <tr class=' module-item'>
  401. <td><a class="struct" href="struct.Le.html"
  402. title='struct syn::token::Le'>Le</a></td>
  403. <td class='docblock-short'>
  404. <p><code>&lt;=</code></p>
  405. </td>
  406. </tr>
  407. <tr class=' module-item'>
  408. <td><a class="struct" href="struct.Let.html"
  409. title='struct syn::token::Let'>Let</a></td>
  410. <td class='docblock-short'>
  411. <p><code>let</code></p>
  412. </td>
  413. </tr>
  414. <tr class=' module-item'>
  415. <td><a class="struct" href="struct.Loop.html"
  416. title='struct syn::token::Loop'>Loop</a></td>
  417. <td class='docblock-short'>
  418. <p><code>loop</code></p>
  419. </td>
  420. </tr>
  421. <tr class=' module-item'>
  422. <td><a class="struct" href="struct.Lt.html"
  423. title='struct syn::token::Lt'>Lt</a></td>
  424. <td class='docblock-short'>
  425. <p><code>&lt;</code></p>
  426. </td>
  427. </tr>
  428. <tr class=' module-item'>
  429. <td><a class="struct" href="struct.Macro.html"
  430. title='struct syn::token::Macro'>Macro</a></td>
  431. <td class='docblock-short'>
  432. <p><code>macro</code></p>
  433. </td>
  434. </tr>
  435. <tr class=' module-item'>
  436. <td><a class="struct" href="struct.Match.html"
  437. title='struct syn::token::Match'>Match</a></td>
  438. <td class='docblock-short'>
  439. <p><code>match</code></p>
  440. </td>
  441. </tr>
  442. <tr class=' module-item'>
  443. <td><a class="struct" href="struct.Mod.html"
  444. title='struct syn::token::Mod'>Mod</a></td>
  445. <td class='docblock-short'>
  446. <p><code>mod</code></p>
  447. </td>
  448. </tr>
  449. <tr class=' module-item'>
  450. <td><a class="struct" href="struct.Move.html"
  451. title='struct syn::token::Move'>Move</a></td>
  452. <td class='docblock-short'>
  453. <p><code>move</code></p>
  454. </td>
  455. </tr>
  456. <tr class=' module-item'>
  457. <td><a class="struct" href="struct.MulEq.html"
  458. title='struct syn::token::MulEq'>MulEq</a></td>
  459. <td class='docblock-short'>
  460. <p><code>*=</code></p>
  461. </td>
  462. </tr>
  463. <tr class=' module-item'>
  464. <td><a class="struct" href="struct.Mut.html"
  465. title='struct syn::token::Mut'>Mut</a></td>
  466. <td class='docblock-short'>
  467. <p><code>mut</code></p>
  468. </td>
  469. </tr>
  470. <tr class=' module-item'>
  471. <td><a class="struct" href="struct.Ne.html"
  472. title='struct syn::token::Ne'>Ne</a></td>
  473. <td class='docblock-short'>
  474. <p><code>!=</code></p>
  475. </td>
  476. </tr>
  477. <tr class=' module-item'>
  478. <td><a class="struct" href="struct.Or.html"
  479. title='struct syn::token::Or'>Or</a></td>
  480. <td class='docblock-short'>
  481. <p><code>|</code></p>
  482. </td>
  483. </tr>
  484. <tr class=' module-item'>
  485. <td><a class="struct" href="struct.OrEq.html"
  486. title='struct syn::token::OrEq'>OrEq</a></td>
  487. <td class='docblock-short'>
  488. <p><code>|=</code></p>
  489. </td>
  490. </tr>
  491. <tr class=' module-item'>
  492. <td><a class="struct" href="struct.OrOr.html"
  493. title='struct syn::token::OrOr'>OrOr</a></td>
  494. <td class='docblock-short'>
  495. <p><code>||</code></p>
  496. </td>
  497. </tr>
  498. <tr class=' module-item'>
  499. <td><a class="struct" href="struct.Paren.html"
  500. title='struct syn::token::Paren'>Paren</a></td>
  501. <td class='docblock-short'>
  502. <p><code>(...)</code></p>
  503. </td>
  504. </tr>
  505. <tr class=' module-item'>
  506. <td><a class="struct" href="struct.Pound.html"
  507. title='struct syn::token::Pound'>Pound</a></td>
  508. <td class='docblock-short'>
  509. <p><code>#</code></p>
  510. </td>
  511. </tr>
  512. <tr class=' module-item'>
  513. <td><a class="struct" href="struct.Pub.html"
  514. title='struct syn::token::Pub'>Pub</a></td>
  515. <td class='docblock-short'>
  516. <p><code>pub</code></p>
  517. </td>
  518. </tr>
  519. <tr class=' module-item'>
  520. <td><a class="struct" href="struct.Question.html"
  521. title='struct syn::token::Question'>Question</a></td>
  522. <td class='docblock-short'>
  523. <p><code>?</code></p>
  524. </td>
  525. </tr>
  526. <tr class=' module-item'>
  527. <td><a class="struct" href="struct.RArrow.html"
  528. title='struct syn::token::RArrow'>RArrow</a></td>
  529. <td class='docblock-short'>
  530. <p><code>-&gt;</code></p>
  531. </td>
  532. </tr>
  533. <tr class=' module-item'>
  534. <td><a class="struct" href="struct.Ref.html"
  535. title='struct syn::token::Ref'>Ref</a></td>
  536. <td class='docblock-short'>
  537. <p><code>ref</code></p>
  538. </td>
  539. </tr>
  540. <tr class=' module-item'>
  541. <td><a class="struct" href="struct.Rem.html"
  542. title='struct syn::token::Rem'>Rem</a></td>
  543. <td class='docblock-short'>
  544. <p><code>%</code></p>
  545. </td>
  546. </tr>
  547. <tr class=' module-item'>
  548. <td><a class="struct" href="struct.RemEq.html"
  549. title='struct syn::token::RemEq'>RemEq</a></td>
  550. <td class='docblock-short'>
  551. <p><code>%=</code></p>
  552. </td>
  553. </tr>
  554. <tr class=' module-item'>
  555. <td><a class="struct" href="struct.Return.html"
  556. title='struct syn::token::Return'>Return</a></td>
  557. <td class='docblock-short'>
  558. <p><code>return</code></p>
  559. </td>
  560. </tr>
  561. <tr class=' module-item'>
  562. <td><a class="struct" href="struct.Self_.html"
  563. title='struct syn::token::Self_'>Self_</a></td>
  564. <td class='docblock-short'>
  565. <p><code>self</code></p>
  566. </td>
  567. </tr>
  568. <tr class=' module-item'>
  569. <td><a class="struct" href="struct.Semi.html"
  570. title='struct syn::token::Semi'>Semi</a></td>
  571. <td class='docblock-short'>
  572. <p><code>;</code></p>
  573. </td>
  574. </tr>
  575. <tr class=' module-item'>
  576. <td><a class="struct" href="struct.Shl.html"
  577. title='struct syn::token::Shl'>Shl</a></td>
  578. <td class='docblock-short'>
  579. <p><code>&lt;&lt;</code></p>
  580. </td>
  581. </tr>
  582. <tr class=' module-item'>
  583. <td><a class="struct" href="struct.ShlEq.html"
  584. title='struct syn::token::ShlEq'>ShlEq</a></td>
  585. <td class='docblock-short'>
  586. <p><code>&lt;&lt;=</code></p>
  587. </td>
  588. </tr>
  589. <tr class=' module-item'>
  590. <td><a class="struct" href="struct.Shr.html"
  591. title='struct syn::token::Shr'>Shr</a></td>
  592. <td class='docblock-short'>
  593. <p><code>&gt;&gt;</code></p>
  594. </td>
  595. </tr>
  596. <tr class=' module-item'>
  597. <td><a class="struct" href="struct.ShrEq.html"
  598. title='struct syn::token::ShrEq'>ShrEq</a></td>
  599. <td class='docblock-short'>
  600. <p><code>&gt;&gt;=</code></p>
  601. </td>
  602. </tr>
  603. <tr class=' module-item'>
  604. <td><a class="struct" href="struct.Star.html"
  605. title='struct syn::token::Star'>Star</a></td>
  606. <td class='docblock-short'>
  607. <p><code>*</code></p>
  608. </td>
  609. </tr>
  610. <tr class=' module-item'>
  611. <td><a class="struct" href="struct.Static.html"
  612. title='struct syn::token::Static'>Static</a></td>
  613. <td class='docblock-short'>
  614. <p><code>static</code></p>
  615. </td>
  616. </tr>
  617. <tr class=' module-item'>
  618. <td><a class="struct" href="struct.Struct.html"
  619. title='struct syn::token::Struct'>Struct</a></td>
  620. <td class='docblock-short'>
  621. <p><code>struct</code></p>
  622. </td>
  623. </tr>
  624. <tr class=' module-item'>
  625. <td><a class="struct" href="struct.Sub.html"
  626. title='struct syn::token::Sub'>Sub</a></td>
  627. <td class='docblock-short'>
  628. <p><code>-</code></p>
  629. </td>
  630. </tr>
  631. <tr class=' module-item'>
  632. <td><a class="struct" href="struct.SubEq.html"
  633. title='struct syn::token::SubEq'>SubEq</a></td>
  634. <td class='docblock-short'>
  635. <p><code>-=</code></p>
  636. </td>
  637. </tr>
  638. <tr class=' module-item'>
  639. <td><a class="struct" href="struct.Super.html"
  640. title='struct syn::token::Super'>Super</a></td>
  641. <td class='docblock-short'>
  642. <p><code>super</code></p>
  643. </td>
  644. </tr>
  645. <tr class=' module-item'>
  646. <td><a class="struct" href="struct.Trait.html"
  647. title='struct syn::token::Trait'>Trait</a></td>
  648. <td class='docblock-short'>
  649. <p><code>trait</code></p>
  650. </td>
  651. </tr>
  652. <tr class=' module-item'>
  653. <td><a class="struct" href="struct.Type.html"
  654. title='struct syn::token::Type'>Type</a></td>
  655. <td class='docblock-short'>
  656. <p><code>type</code></p>
  657. </td>
  658. </tr>
  659. <tr class=' module-item'>
  660. <td><a class="struct" href="struct.Underscore.html"
  661. title='struct syn::token::Underscore'>Underscore</a></td>
  662. <td class='docblock-short'>
  663. <p><code>_</code></p>
  664. </td>
  665. </tr>
  666. <tr class=' module-item'>
  667. <td><a class="struct" href="struct.Union.html"
  668. title='struct syn::token::Union'>Union</a></td>
  669. <td class='docblock-short'>
  670. <p><code>union</code></p>
  671. </td>
  672. </tr>
  673. <tr class=' module-item'>
  674. <td><a class="struct" href="struct.Unsafe.html"
  675. title='struct syn::token::Unsafe'>Unsafe</a></td>
  676. <td class='docblock-short'>
  677. <p><code>unsafe</code></p>
  678. </td>
  679. </tr>
  680. <tr class=' module-item'>
  681. <td><a class="struct" href="struct.Use.html"
  682. title='struct syn::token::Use'>Use</a></td>
  683. <td class='docblock-short'>
  684. <p><code>use</code></p>
  685. </td>
  686. </tr>
  687. <tr class=' module-item'>
  688. <td><a class="struct" href="struct.Where.html"
  689. title='struct syn::token::Where'>Where</a></td>
  690. <td class='docblock-short'>
  691. <p><code>where</code></p>
  692. </td>
  693. </tr>
  694. <tr class=' module-item'>
  695. <td><a class="struct" href="struct.While.html"
  696. title='struct syn::token::While'>While</a></td>
  697. <td class='docblock-short'>
  698. <p><code>while</code></p>
  699. </td>
  700. </tr>
  701. <tr class=' module-item'>
  702. <td><a class="struct" href="struct.Yield.html"
  703. title='struct syn::token::Yield'>Yield</a></td>
  704. <td class='docblock-short'>
  705. <p><code>yield</code></p>
  706. </td>
  707. </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>&#9166;</kbd></dt><dd>Go to active search result</dd><dt><kbd>+</kbd></dt><dd>Expand all sections</dd><dt><kbd>-</kbd></dt><dd>Collapse all sections</dd></dl></div><div class="infos"><h2>Search Tricks</h2><p>Prefix searches with a type followed by a colon (e.g. <code>fn:</code>) to restrict the search to a given type.</p><p>Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>.</p><p>Search functions by type signature (e.g. <code>vec -> usize</code> or <code>* -> vec</code>)</p><p>Search multiple things at once by splitting your query with comma (e.g. <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../../";window.currentCrate = "syn";</script><script src="../../aliases.js"></script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>