edlang/syn/token/index.html
2024-05-17 09:00:12 +00:00

65 lines
27 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

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

<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Tokens representing Rust punctuation, keywords, and delimiters."><title>syn::token - Rust</title><script> if (window.location.protocol !== "file:") document.write(`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-e935ef01ae1c1829.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="syn" data-themes="" data-resource-suffix="" data-rustdoc-version="1.78.0 (9b00956e5 2024-04-29)" data-channel="1.78.0" data-search-js="search-42d8da7a6b9792c2.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../static.files/storage-4c98445ec4002617.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-04d5337699b92874.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../syn/index.html">syn</a><span class="version">2.0.63</span></h2></div><h2 class="location"><a href="#">Module token</a></h2><div class="sidebar-elems"><section><ul class="block"><li><a href="#structs">Structs</a></li><li><a href="#traits">Traits</a></li></ul></section><h2><a href="../index.html">In crate syn</a></h2></div></nav><div class="sidebar-resizer"></div>
<main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../syn/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Module <a href="../index.html">syn</a>::<wbr><a class="mod" href="#">token</a><button id="copy-path" title="Copy item path to clipboard"><img src="../../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="src" href="../../src/syn/token.rs.html#1-1138">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><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" title="macro syn::Token"><code>Token!</code></a> macro instead. This is a type-macro that
expands to the token type of the given token.</p>
<h2 id="example"><a class="doc-anchor" href="#example">§</a>Example</h2>
<p>The <a href="../struct.ItemStatic.html" title="struct syn::ItemStatic"><code>ItemStatic</code></a> syntax tree node is defined like this.</p>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">pub struct </span>ItemStatic {
<span class="kw">pub </span>attrs: Vec&lt;Attribute&gt;,
<span class="kw">pub </span>vis: Visibility,
<span class="kw">pub </span>static_token: <span class="macro">Token!</span>[<span class="kw">static</span>],
<span class="kw">pub </span>mutability: <span class="prelude-ty">Option</span>&lt;<span class="macro">Token!</span>[<span class="kw-2">mut</span>]&gt;,
<span class="kw">pub </span>ident: Ident,
<span class="kw">pub </span>colon_token: <span class="macro">Token!</span>[:],
<span class="kw">pub </span>ty: Box&lt;Type&gt;,
<span class="kw">pub </span>eq_token: <span class="macro">Token!</span>[=],
<span class="kw">pub </span>expr: Box&lt;Expr&gt;,
<span class="kw">pub </span>semi_token: <span class="macro">Token!</span>[;],
}</code></pre></div>
<h2 id="parsing"><a class="doc-anchor" href="#parsing">§</a>Parsing</h2>
<p>Keywords and punctuation can be parsed through the <a href="../parse/struct.ParseBuffer.html#method.parse" title="method syn::parse::ParseBuffer::parse"><code>ParseStream::parse</code></a>
method. Delimiter tokens are parsed using the <a href="../macro.parenthesized.html" title="macro syn::parenthesized"><code>parenthesized!</code></a>,
<a href="../macro.bracketed.html" title="macro syn::bracketed"><code>bracketed!</code></a> and <a href="../macro.braced.html" title="macro syn::braced"><code>braced!</code></a> macros.</p>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>syn::{Attribute, <span class="prelude-ty">Result</span>};
<span class="kw">use </span>syn::parse::{Parse, ParseStream};
<span class="comment">// Parse the ItemStatic struct shown above.
</span><span class="kw">impl </span>Parse <span class="kw">for </span>ItemStatic {
<span class="kw">fn </span>parse(input: ParseStream) -&gt; <span class="prelude-ty">Result</span>&lt;<span class="self">Self</span>&gt; {
<span class="prelude-val">Ok</span>(ItemStatic {
attrs: input.call(Attribute::parse_outer)<span class="question-mark">?</span>,
vis: input.parse()<span class="question-mark">?</span>,
static_token: input.parse()<span class="question-mark">?</span>,
mutability: input.parse()<span class="question-mark">?</span>,
ident: input.parse()<span class="question-mark">?</span>,
colon_token: input.parse()<span class="question-mark">?</span>,
ty: input.parse()<span class="question-mark">?</span>,
eq_token: input.parse()<span class="question-mark">?</span>,
expr: input.parse()<span class="question-mark">?</span>,
semi_token: input.parse()<span class="question-mark">?</span>,
})
}
}</code></pre></div>
<h2 id="other-operations"><a class="doc-anchor" href="#other-operations">§</a>Other operations</h2>
<p>Every keyword and punctuation token supports the following operations.</p>
<ul>
<li>
<p><a href="../parse/struct.ParseBuffer.html#method.peek" title="method syn::parse::ParseBuffer::peek">Peeking</a><code>input.peek(Token![...])</code></p>
</li>
<li>
<p><a href="../parse/struct.ParseBuffer.html#method.parse" title="method syn::parse::ParseBuffer::parse">Parsing</a><code>input.parse::&lt;Token![...]&gt;()?</code></p>
</li>
<li>
<p><a href="https://docs.rs/quote/1.0/quote/trait.ToTokens.html">Printing</a><code>quote!( ... #the_token ... )</code></p>
</li>
<li>
<p>Construction from a <a href="https://docs.rs/proc-macro2/1.0/proc_macro2/struct.Span.html"><code>Span</code></a><code>let the_token = Token![...](sp)</code></p>
</li>
<li>
<p>Field access to its span — <code>let sp = the_token.span</code></p>
</li>
</ul>
</div></details><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="struct" href="struct.Abstract.html" title="struct syn::token::Abstract">Abstract</a></div><div class="desc docblock-short"><code>abstract</code></div></li><li><div class="item-name"><a class="struct" href="struct.And.html" title="struct syn::token::And">And</a></div><div class="desc docblock-short"><code>&amp;</code></div></li><li><div class="item-name"><a class="struct" href="struct.AndAnd.html" title="struct syn::token::AndAnd">AndAnd</a></div><div class="desc docblock-short"><code>&amp;&amp;</code></div></li><li><div class="item-name"><a class="struct" href="struct.AndEq.html" title="struct syn::token::AndEq">AndEq</a></div><div class="desc docblock-short"><code>&amp;=</code></div></li><li><div class="item-name"><a class="struct" href="struct.As.html" title="struct syn::token::As">As</a></div><div class="desc docblock-short"><code>as</code></div></li><li><div class="item-name"><a class="struct" href="struct.Async.html" title="struct syn::token::Async">Async</a></div><div class="desc docblock-short"><code>async</code></div></li><li><div class="item-name"><a class="struct" href="struct.At.html" title="struct syn::token::At">At</a></div><div class="desc docblock-short"><code>@</code></div></li><li><div class="item-name"><a class="struct" href="struct.Auto.html" title="struct syn::token::Auto">Auto</a></div><div class="desc docblock-short"><code>auto</code></div></li><li><div class="item-name"><a class="struct" href="struct.Await.html" title="struct syn::token::Await">Await</a></div><div class="desc docblock-short"><code>await</code></div></li><li><div class="item-name"><a class="struct" href="struct.Become.html" title="struct syn::token::Become">Become</a></div><div class="desc docblock-short"><code>become</code></div></li><li><div class="item-name"><a class="struct" href="struct.Box.html" title="struct syn::token::Box">Box</a></div><div class="desc docblock-short"><code>box</code></div></li><li><div class="item-name"><a class="struct" href="struct.Brace.html" title="struct syn::token::Brace">Brace</a></div><div class="desc docblock-short"><code>{</code><code>}</code></div></li><li><div class="item-name"><a class="struct" href="struct.Bracket.html" title="struct syn::token::Bracket">Bracket</a></div><div class="desc docblock-short"><code>[</code><code>]</code></div></li><li><div class="item-name"><a class="struct" href="struct.Break.html" title="struct syn::token::Break">Break</a></div><div class="desc docblock-short"><code>break</code></div></li><li><div class="item-name"><a class="struct" href="struct.Caret.html" title="struct syn::token::Caret">Caret</a></div><div class="desc docblock-short"><code>^</code></div></li><li><div class="item-name"><a class="struct" href="struct.CaretEq.html" title="struct syn::token::CaretEq">CaretEq</a></div><div class="desc docblock-short"><code>^=</code></div></li><li><div class="item-name"><a class="struct" href="struct.Colon.html" title="struct syn::token::Colon">Colon</a></div><div class="desc docblock-short"><code>:</code></div></li><li><div class="item-name"><a class="struct" href="struct.Comma.html" title="struct syn::token::Comma">Comma</a></div><div class="desc docblock-short"><code>,</code></div></li><li><div class="item-name"><a class="struct" href="struct.Const.html" title="struct syn::token::Const">Const</a></div><div class="desc docblock-short"><code>const</code></div></li><li><div class="item-name"><a class="struct" href="struct.Continue.html" title="struct syn::token::Continue">Continue</a></div><div class="desc docblock-short"><code>continue</code></div></li><li><div class="item-name"><a class="struct" href="struct.Crate.html" title="struct syn::token::Crate">Crate</a></div><div class="desc docblock-short"><code>crate</code></div></li><li><div class="item-name"><a class="struct" href="struct.Default.html" title="struct syn::token::Default">Default</a></div><div class="desc docblock-short"><code>default</code></div></li><li><div class="item-name"><a class="struct" href="struct.Do.html" title="struct syn::token::Do">Do</a></div><div class="desc docblock-short"><code>do</code></div></li><li><div class="item-name"><a class="struct" href="struct.Dollar.html" title="struct syn::token::Dollar">Dollar</a></div><div class="desc docblock-short"><code>$</code></div></li><li><div class="item-name"><a class="struct" href="struct.Dot.html" title="struct syn::token::Dot">Dot</a></div><div class="desc docblock-short"><code>.</code></div></li><li><div class="item-name"><a class="struct" href="struct.DotDot.html" title="struct syn::token::DotDot">DotDot</a></div><div class="desc docblock-short"><code>..</code></div></li><li><div class="item-name"><a class="struct" href="struct.DotDotDot.html" title="struct syn::token::DotDotDot">DotDotDot</a></div><div class="desc docblock-short"><code>...</code></div></li><li><div class="item-name"><a class="struct" href="struct.DotDotEq.html" title="struct syn::token::DotDotEq">DotDotEq</a></div><div class="desc docblock-short"><code>..=</code></div></li><li><div class="item-name"><a class="struct" href="struct.Dyn.html" title="struct syn::token::Dyn">Dyn</a></div><div class="desc docblock-short"><code>dyn</code></div></li><li><div class="item-name"><a class="struct" href="struct.Else.html" title="struct syn::token::Else">Else</a></div><div class="desc docblock-short"><code>else</code></div></li><li><div class="item-name"><a class="struct" href="struct.Enum.html" title="struct syn::token::Enum">Enum</a></div><div class="desc docblock-short"><code>enum</code></div></li><li><div class="item-name"><a class="struct" href="struct.Eq.html" title="struct syn::token::Eq">Eq</a></div><div class="desc docblock-short"><code>=</code></div></li><li><div class="item-name"><a class="struct" href="struct.EqEq.html" title="struct syn::token::EqEq">EqEq</a></div><div class="desc docblock-short"><code>==</code></div></li><li><div class="item-name"><a class="struct" href="struct.Extern.html" title="struct syn::token::Extern">Extern</a></div><div class="desc docblock-short"><code>extern</code></div></li><li><div class="item-name"><a class="struct" href="struct.FatArrow.html" title="struct syn::token::FatArrow">FatArrow</a></div><div class="desc docblock-short"><code>=&gt;</code></div></li><li><div class="item-name"><a class="struct" href="struct.Final.html" title="struct syn::token::Final">Final</a></div><div class="desc docblock-short"><code>final</code></div></li><li><div class="item-name"><a class="struct" href="struct.Fn.html" title="struct syn::token::Fn">Fn</a></div><div class="desc docblock-short"><code>fn</code></div></li><li><div class="item-name"><a class="struct" href="struct.For.html" title="struct syn::token::For">For</a></div><div class="desc docblock-short"><code>for</code></div></li><li><div class="item-name"><a class="struct" href="struct.Ge.html" title="struct syn::token::Ge">Ge</a></div><div class="desc docblock-short"><code>&gt;=</code></div></li><li><div class="item-name"><a class="struct" href="struct.Group.html" title="struct syn::token::Group">Group</a></div><div class="desc docblock-short">None-delimited group</div></li><li><div class="item-name"><a class="struct" href="struct.Gt.html" title="struct syn::token::Gt">Gt</a></div><div class="desc docblock-short"><code>&gt;</code></div></li><li><div class="item-name"><a class="struct" href="struct.If.html" title="struct syn::token::If">If</a></div><div class="desc docblock-short"><code>if</code></div></li><li><div class="item-name"><a class="struct" href="struct.Impl.html" title="struct syn::token::Impl">Impl</a></div><div class="desc docblock-short"><code>impl</code></div></li><li><div class="item-name"><a class="struct" href="struct.In.html" title="struct syn::token::In">In</a></div><div class="desc docblock-short"><code>in</code></div></li><li><div class="item-name"><a class="struct" href="struct.LArrow.html" title="struct syn::token::LArrow">LArrow</a></div><div class="desc docblock-short"><code>&lt;-</code></div></li><li><div class="item-name"><a class="struct" href="struct.Le.html" title="struct syn::token::Le">Le</a></div><div class="desc docblock-short"><code>&lt;=</code></div></li><li><div class="item-name"><a class="struct" href="struct.Let.html" title="struct syn::token::Let">Let</a></div><div class="desc docblock-short"><code>let</code></div></li><li><div class="item-name"><a class="struct" href="struct.Loop.html" title="struct syn::token::Loop">Loop</a></div><div class="desc docblock-short"><code>loop</code></div></li><li><div class="item-name"><a class="struct" href="struct.Lt.html" title="struct syn::token::Lt">Lt</a></div><div class="desc docblock-short"><code>&lt;</code></div></li><li><div class="item-name"><a class="struct" href="struct.Macro.html" title="struct syn::token::Macro">Macro</a></div><div class="desc docblock-short"><code>macro</code></div></li><li><div class="item-name"><a class="struct" href="struct.Match.html" title="struct syn::token::Match">Match</a></div><div class="desc docblock-short"><code>match</code></div></li><li><div class="item-name"><a class="struct" href="struct.Minus.html" title="struct syn::token::Minus">Minus</a></div><div class="desc docblock-short"><code>-</code></div></li><li><div class="item-name"><a class="struct" href="struct.MinusEq.html" title="struct syn::token::MinusEq">MinusEq</a></div><div class="desc docblock-short"><code>-=</code></div></li><li><div class="item-name"><a class="struct" href="struct.Mod.html" title="struct syn::token::Mod">Mod</a></div><div class="desc docblock-short"><code>mod</code></div></li><li><div class="item-name"><a class="struct" href="struct.Move.html" title="struct syn::token::Move">Move</a></div><div class="desc docblock-short"><code>move</code></div></li><li><div class="item-name"><a class="struct" href="struct.Mut.html" title="struct syn::token::Mut">Mut</a></div><div class="desc docblock-short"><code>mut</code></div></li><li><div class="item-name"><a class="struct" href="struct.Ne.html" title="struct syn::token::Ne">Ne</a></div><div class="desc docblock-short"><code>!=</code></div></li><li><div class="item-name"><a class="struct" href="struct.Not.html" title="struct syn::token::Not">Not</a></div><div class="desc docblock-short"><code>!</code></div></li><li><div class="item-name"><a class="struct" href="struct.Or.html" title="struct syn::token::Or">Or</a></div><div class="desc docblock-short"><code>|</code></div></li><li><div class="item-name"><a class="struct" href="struct.OrEq.html" title="struct syn::token::OrEq">OrEq</a></div><div class="desc docblock-short"><code>|=</code></div></li><li><div class="item-name"><a class="struct" href="struct.OrOr.html" title="struct syn::token::OrOr">OrOr</a></div><div class="desc docblock-short"><code>||</code></div></li><li><div class="item-name"><a class="struct" href="struct.Override.html" title="struct syn::token::Override">Override</a></div><div class="desc docblock-short"><code>override</code></div></li><li><div class="item-name"><a class="struct" href="struct.Paren.html" title="struct syn::token::Paren">Paren</a></div><div class="desc docblock-short"><code>(</code><code>)</code></div></li><li><div class="item-name"><a class="struct" href="struct.PathSep.html" title="struct syn::token::PathSep">PathSep</a></div><div class="desc docblock-short"><code>::</code></div></li><li><div class="item-name"><a class="struct" href="struct.Percent.html" title="struct syn::token::Percent">Percent</a></div><div class="desc docblock-short"><code>%</code></div></li><li><div class="item-name"><a class="struct" href="struct.PercentEq.html" title="struct syn::token::PercentEq">PercentEq</a></div><div class="desc docblock-short"><code>%=</code></div></li><li><div class="item-name"><a class="struct" href="struct.Plus.html" title="struct syn::token::Plus">Plus</a></div><div class="desc docblock-short"><code>+</code></div></li><li><div class="item-name"><a class="struct" href="struct.PlusEq.html" title="struct syn::token::PlusEq">PlusEq</a></div><div class="desc docblock-short"><code>+=</code></div></li><li><div class="item-name"><a class="struct" href="struct.Pound.html" title="struct syn::token::Pound">Pound</a></div><div class="desc docblock-short"><code>#</code></div></li><li><div class="item-name"><a class="struct" href="struct.Priv.html" title="struct syn::token::Priv">Priv</a></div><div class="desc docblock-short"><code>priv</code></div></li><li><div class="item-name"><a class="struct" href="struct.Pub.html" title="struct syn::token::Pub">Pub</a></div><div class="desc docblock-short"><code>pub</code></div></li><li><div class="item-name"><a class="struct" href="struct.Question.html" title="struct syn::token::Question">Question</a></div><div class="desc docblock-short"><code>?</code></div></li><li><div class="item-name"><a class="struct" href="struct.RArrow.html" title="struct syn::token::RArrow">RArrow</a></div><div class="desc docblock-short"><code>-&gt;</code></div></li><li><div class="item-name"><a class="struct" href="struct.Ref.html" title="struct syn::token::Ref">Ref</a></div><div class="desc docblock-short"><code>ref</code></div></li><li><div class="item-name"><a class="struct" href="struct.Return.html" title="struct syn::token::Return">Return</a></div><div class="desc docblock-short"><code>return</code></div></li><li><div class="item-name"><a class="struct" href="struct.SelfType.html" title="struct syn::token::SelfType">SelfType</a></div><div class="desc docblock-short"><code>Self</code></div></li><li><div class="item-name"><a class="struct" href="struct.SelfValue.html" title="struct syn::token::SelfValue">SelfValue</a></div><div class="desc docblock-short"><code>self</code></div></li><li><div class="item-name"><a class="struct" href="struct.Semi.html" title="struct syn::token::Semi">Semi</a></div><div class="desc docblock-short"><code>;</code></div></li><li><div class="item-name"><a class="struct" href="struct.Shl.html" title="struct syn::token::Shl">Shl</a></div><div class="desc docblock-short"><code>&lt;&lt;</code></div></li><li><div class="item-name"><a class="struct" href="struct.ShlEq.html" title="struct syn::token::ShlEq">ShlEq</a></div><div class="desc docblock-short"><code>&lt;&lt;=</code></div></li><li><div class="item-name"><a class="struct" href="struct.Shr.html" title="struct syn::token::Shr">Shr</a></div><div class="desc docblock-short"><code>&gt;&gt;</code></div></li><li><div class="item-name"><a class="struct" href="struct.ShrEq.html" title="struct syn::token::ShrEq">ShrEq</a></div><div class="desc docblock-short"><code>&gt;&gt;=</code></div></li><li><div class="item-name"><a class="struct" href="struct.Slash.html" title="struct syn::token::Slash">Slash</a></div><div class="desc docblock-short"><code>/</code></div></li><li><div class="item-name"><a class="struct" href="struct.SlashEq.html" title="struct syn::token::SlashEq">SlashEq</a></div><div class="desc docblock-short"><code>/=</code></div></li><li><div class="item-name"><a class="struct" href="struct.Star.html" title="struct syn::token::Star">Star</a></div><div class="desc docblock-short"><code>*</code></div></li><li><div class="item-name"><a class="struct" href="struct.StarEq.html" title="struct syn::token::StarEq">StarEq</a></div><div class="desc docblock-short"><code>*=</code></div></li><li><div class="item-name"><a class="struct" href="struct.Static.html" title="struct syn::token::Static">Static</a></div><div class="desc docblock-short"><code>static</code></div></li><li><div class="item-name"><a class="struct" href="struct.Struct.html" title="struct syn::token::Struct">Struct</a></div><div class="desc docblock-short"><code>struct</code></div></li><li><div class="item-name"><a class="struct" href="struct.Super.html" title="struct syn::token::Super">Super</a></div><div class="desc docblock-short"><code>super</code></div></li><li><div class="item-name"><a class="struct" href="struct.Tilde.html" title="struct syn::token::Tilde">Tilde</a></div><div class="desc docblock-short"><code>~</code></div></li><li><div class="item-name"><a class="struct" href="struct.Trait.html" title="struct syn::token::Trait">Trait</a></div><div class="desc docblock-short"><code>trait</code></div></li><li><div class="item-name"><a class="struct" href="struct.Try.html" title="struct syn::token::Try">Try</a></div><div class="desc docblock-short"><code>try</code></div></li><li><div class="item-name"><a class="struct" href="struct.Type.html" title="struct syn::token::Type">Type</a></div><div class="desc docblock-short"><code>type</code></div></li><li><div class="item-name"><a class="struct" href="struct.Typeof.html" title="struct syn::token::Typeof">Typeof</a></div><div class="desc docblock-short"><code>typeof</code></div></li><li><div class="item-name"><a class="struct" href="struct.Underscore.html" title="struct syn::token::Underscore">Underscore</a></div><div class="desc docblock-short"><code>_</code></div></li><li><div class="item-name"><a class="struct" href="struct.Union.html" title="struct syn::token::Union">Union</a></div><div class="desc docblock-short"><code>union</code></div></li><li><div class="item-name"><a class="struct" href="struct.Unsafe.html" title="struct syn::token::Unsafe">Unsafe</a></div><div class="desc docblock-short"><code>unsafe</code></div></li><li><div class="item-name"><a class="struct" href="struct.Unsized.html" title="struct syn::token::Unsized">Unsized</a></div><div class="desc docblock-short"><code>unsized</code></div></li><li><div class="item-name"><a class="struct" href="struct.Use.html" title="struct syn::token::Use">Use</a></div><div class="desc docblock-short"><code>use</code></div></li><li><div class="item-name"><a class="struct" href="struct.Virtual.html" title="struct syn::token::Virtual">Virtual</a></div><div class="desc docblock-short"><code>virtual</code></div></li><li><div class="item-name"><a class="struct" href="struct.Where.html" title="struct syn::token::Where">Where</a></div><div class="desc docblock-short"><code>where</code></div></li><li><div class="item-name"><a class="struct" href="struct.While.html" title="struct syn::token::While">While</a></div><div class="desc docblock-short"><code>while</code></div></li><li><div class="item-name"><a class="struct" href="struct.Yield.html" title="struct syn::token::Yield">Yield</a></div><div class="desc docblock-short"><code>yield</code></div></li></ul><h2 id="traits" class="section-header">Traits<a href="#traits" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="trait" href="trait.Token.html" title="trait syn::token::Token">Token</a></div><div class="desc docblock-short">Marker trait for types that represent single tokens.</div></li></ul></section></div></main></body></html>