blob: 3fad8cefb3444965d4f3e93471e98c7dd6241301 [file] [log] [blame]
<!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."><meta name="keywords" content="rust, rustlang, rust-lang, token"><title>syn::token - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../../normalize.css"><link rel="stylesheet" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../../ayu.css" disabled><link rel="stylesheet" href="../../dark.css" disabled><link rel="stylesheet" href="../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../storage.js"></script><script defer src="../../main.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.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">&#9776;</button><a class="sidebar-logo" href="../../syn/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div></a><h2></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../syn/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div></a><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></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../wheel.svg"></a></div></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn">Module <a href="../index.html">syn</a>::<wbr><a class="mod" href="#">token</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="srclink" href="../../src/syn/token.rs.html#1-1068">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><details class="rustdoc-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"><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 href="#example">Example</a></h2>
<p>The <a href="../struct.ItemStatic.html"><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 href="#parsing">Parsing</a></h2>
<p>Keywords and punctuation can be parsed through the <a href="../parse/struct.ParseBuffer.html#method.parse"><code>ParseStream::parse</code></a>
method. Delimiter tokens are parsed using the <a href="../macro.parenthesized.html"><code>parenthesized!</code></a>,
<a href="../macro.bracketed.html"><code>bracketed!</code></a> and <a href="../macro.braced.html"><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 href="#other-operations">Other operations</a></h2>
<p>Every keyword and punctuation token supports the following operations.</p>
<ul>
<li>
<p><a href="../parse/struct.ParseBuffer.html#method.peek">Peeking</a><code>input.peek(Token![...])</code></p>
</li>
<li>
<p><a href="../parse/struct.ParseBuffer.html#method.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="small-section-header"><a href="#structs">Structs</a></h2><div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Abstract.html" title="syn::token::Abstract struct">Abstract</a></div><div class="item-right docblock-short"><code>abstract</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.And.html" title="syn::token::And struct">And</a></div><div class="item-right docblock-short"><code>&amp;</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.AndAnd.html" title="syn::token::AndAnd struct">AndAnd</a></div><div class="item-right docblock-short"><code>&amp;&amp;</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.AndEq.html" title="syn::token::AndEq struct">AndEq</a></div><div class="item-right docblock-short"><code>&amp;=</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.As.html" title="syn::token::As struct">As</a></div><div class="item-right docblock-short"><code>as</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Async.html" title="syn::token::Async struct">Async</a></div><div class="item-right docblock-short"><code>async</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.At.html" title="syn::token::At struct">At</a></div><div class="item-right docblock-short"><code>@</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Auto.html" title="syn::token::Auto struct">Auto</a></div><div class="item-right docblock-short"><code>auto</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Await.html" title="syn::token::Await struct">Await</a></div><div class="item-right docblock-short"><code>await</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Become.html" title="syn::token::Become struct">Become</a></div><div class="item-right docblock-short"><code>become</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Box.html" title="syn::token::Box struct">Box</a></div><div class="item-right docblock-short"><code>box</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Brace.html" title="syn::token::Brace struct">Brace</a></div><div class="item-right docblock-short"><code>{</code><code>}</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Bracket.html" title="syn::token::Bracket struct">Bracket</a></div><div class="item-right docblock-short"><code>[</code><code>]</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Break.html" title="syn::token::Break struct">Break</a></div><div class="item-right docblock-short"><code>break</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Caret.html" title="syn::token::Caret struct">Caret</a></div><div class="item-right docblock-short"><code>^</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.CaretEq.html" title="syn::token::CaretEq struct">CaretEq</a></div><div class="item-right docblock-short"><code>^=</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Colon.html" title="syn::token::Colon struct">Colon</a></div><div class="item-right docblock-short"><code>:</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Comma.html" title="syn::token::Comma struct">Comma</a></div><div class="item-right docblock-short"><code>,</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Const.html" title="syn::token::Const struct">Const</a></div><div class="item-right docblock-short"><code>const</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Continue.html" title="syn::token::Continue struct">Continue</a></div><div class="item-right docblock-short"><code>continue</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Crate.html" title="syn::token::Crate struct">Crate</a></div><div class="item-right docblock-short"><code>crate</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Default.html" title="syn::token::Default struct">Default</a></div><div class="item-right docblock-short"><code>default</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Do.html" title="syn::token::Do struct">Do</a></div><div class="item-right docblock-short"><code>do</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Dollar.html" title="syn::token::Dollar struct">Dollar</a></div><div class="item-right docblock-short"><code>$</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Dot.html" title="syn::token::Dot struct">Dot</a></div><div class="item-right docblock-short"><code>.</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.DotDot.html" title="syn::token::DotDot struct">DotDot</a></div><div class="item-right docblock-short"><code>..</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.DotDotDot.html" title="syn::token::DotDotDot struct">DotDotDot</a></div><div class="item-right docblock-short"><code>...</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.DotDotEq.html" title="syn::token::DotDotEq struct">DotDotEq</a></div><div class="item-right docblock-short"><code>..=</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Dyn.html" title="syn::token::Dyn struct">Dyn</a></div><div class="item-right docblock-short"><code>dyn</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Else.html" title="syn::token::Else struct">Else</a></div><div class="item-right docblock-short"><code>else</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Enum.html" title="syn::token::Enum struct">Enum</a></div><div class="item-right docblock-short"><code>enum</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Eq.html" title="syn::token::Eq struct">Eq</a></div><div class="item-right docblock-short"><code>=</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.EqEq.html" title="syn::token::EqEq struct">EqEq</a></div><div class="item-right docblock-short"><code>==</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Extern.html" title="syn::token::Extern struct">Extern</a></div><div class="item-right docblock-short"><code>extern</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.FatArrow.html" title="syn::token::FatArrow struct">FatArrow</a></div><div class="item-right docblock-short"><code>=&gt;</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Final.html" title="syn::token::Final struct">Final</a></div><div class="item-right docblock-short"><code>final</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Fn.html" title="syn::token::Fn struct">Fn</a></div><div class="item-right docblock-short"><code>fn</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.For.html" title="syn::token::For struct">For</a></div><div class="item-right docblock-short"><code>for</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Ge.html" title="syn::token::Ge struct">Ge</a></div><div class="item-right docblock-short"><code>&gt;=</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Group.html" title="syn::token::Group struct">Group</a></div><div class="item-right docblock-short">None-delimited group</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Gt.html" title="syn::token::Gt struct">Gt</a></div><div class="item-right docblock-short"><code>&gt;</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.If.html" title="syn::token::If struct">If</a></div><div class="item-right docblock-short"><code>if</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Impl.html" title="syn::token::Impl struct">Impl</a></div><div class="item-right docblock-short"><code>impl</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.In.html" title="syn::token::In struct">In</a></div><div class="item-right docblock-short"><code>in</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.LArrow.html" title="syn::token::LArrow struct">LArrow</a></div><div class="item-right docblock-short"><code>&lt;-</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Le.html" title="syn::token::Le struct">Le</a></div><div class="item-right docblock-short"><code>&lt;=</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Let.html" title="syn::token::Let struct">Let</a></div><div class="item-right docblock-short"><code>let</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Loop.html" title="syn::token::Loop struct">Loop</a></div><div class="item-right docblock-short"><code>loop</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Lt.html" title="syn::token::Lt struct">Lt</a></div><div class="item-right docblock-short"><code>&lt;</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Macro.html" title="syn::token::Macro struct">Macro</a></div><div class="item-right docblock-short"><code>macro</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Match.html" title="syn::token::Match struct">Match</a></div><div class="item-right docblock-short"><code>match</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Minus.html" title="syn::token::Minus struct">Minus</a></div><div class="item-right docblock-short"><code>-</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.MinusEq.html" title="syn::token::MinusEq struct">MinusEq</a></div><div class="item-right docblock-short"><code>-=</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Mod.html" title="syn::token::Mod struct">Mod</a></div><div class="item-right docblock-short"><code>mod</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Move.html" title="syn::token::Move struct">Move</a></div><div class="item-right docblock-short"><code>move</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Mut.html" title="syn::token::Mut struct">Mut</a></div><div class="item-right docblock-short"><code>mut</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Ne.html" title="syn::token::Ne struct">Ne</a></div><div class="item-right docblock-short"><code>!=</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Not.html" title="syn::token::Not struct">Not</a></div><div class="item-right docblock-short"><code>!</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Or.html" title="syn::token::Or struct">Or</a></div><div class="item-right docblock-short"><code>|</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.OrEq.html" title="syn::token::OrEq struct">OrEq</a></div><div class="item-right docblock-short"><code>|=</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.OrOr.html" title="syn::token::OrOr struct">OrOr</a></div><div class="item-right docblock-short"><code>||</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Override.html" title="syn::token::Override struct">Override</a></div><div class="item-right docblock-short"><code>override</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Paren.html" title="syn::token::Paren struct">Paren</a></div><div class="item-right docblock-short"><code>(</code><code>)</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.PathSep.html" title="syn::token::PathSep struct">PathSep</a></div><div class="item-right docblock-short"><code>::</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Percent.html" title="syn::token::Percent struct">Percent</a></div><div class="item-right docblock-short"><code>%</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.PercentEq.html" title="syn::token::PercentEq struct">PercentEq</a></div><div class="item-right docblock-short"><code>%=</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Plus.html" title="syn::token::Plus struct">Plus</a></div><div class="item-right docblock-short"><code>+</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.PlusEq.html" title="syn::token::PlusEq struct">PlusEq</a></div><div class="item-right docblock-short"><code>+=</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Pound.html" title="syn::token::Pound struct">Pound</a></div><div class="item-right docblock-short"><code>#</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Priv.html" title="syn::token::Priv struct">Priv</a></div><div class="item-right docblock-short"><code>priv</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Pub.html" title="syn::token::Pub struct">Pub</a></div><div class="item-right docblock-short"><code>pub</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Question.html" title="syn::token::Question struct">Question</a></div><div class="item-right docblock-short"><code>?</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.RArrow.html" title="syn::token::RArrow struct">RArrow</a></div><div class="item-right docblock-short"><code>-&gt;</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Ref.html" title="syn::token::Ref struct">Ref</a></div><div class="item-right docblock-short"><code>ref</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Return.html" title="syn::token::Return struct">Return</a></div><div class="item-right docblock-short"><code>return</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.SelfType.html" title="syn::token::SelfType struct">SelfType</a></div><div class="item-right docblock-short"><code>Self</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.SelfValue.html" title="syn::token::SelfValue struct">SelfValue</a></div><div class="item-right docblock-short"><code>self</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Semi.html" title="syn::token::Semi struct">Semi</a></div><div class="item-right docblock-short"><code>;</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Shl.html" title="syn::token::Shl struct">Shl</a></div><div class="item-right docblock-short"><code>&lt;&lt;</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.ShlEq.html" title="syn::token::ShlEq struct">ShlEq</a></div><div class="item-right docblock-short"><code>&lt;&lt;=</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Shr.html" title="syn::token::Shr struct">Shr</a></div><div class="item-right docblock-short"><code>&gt;&gt;</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.ShrEq.html" title="syn::token::ShrEq struct">ShrEq</a></div><div class="item-right docblock-short"><code>&gt;&gt;=</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Slash.html" title="syn::token::Slash struct">Slash</a></div><div class="item-right docblock-short"><code>/</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.SlashEq.html" title="syn::token::SlashEq struct">SlashEq</a></div><div class="item-right docblock-short"><code>/=</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Star.html" title="syn::token::Star struct">Star</a></div><div class="item-right docblock-short"><code>*</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.StarEq.html" title="syn::token::StarEq struct">StarEq</a></div><div class="item-right docblock-short"><code>*=</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Static.html" title="syn::token::Static struct">Static</a></div><div class="item-right docblock-short"><code>static</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Struct.html" title="syn::token::Struct struct">Struct</a></div><div class="item-right docblock-short"><code>struct</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Super.html" title="syn::token::Super struct">Super</a></div><div class="item-right docblock-short"><code>super</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Tilde.html" title="syn::token::Tilde struct">Tilde</a></div><div class="item-right docblock-short"><code>~</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Trait.html" title="syn::token::Trait struct">Trait</a></div><div class="item-right docblock-short"><code>trait</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Try.html" title="syn::token::Try struct">Try</a></div><div class="item-right docblock-short"><code>try</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Type.html" title="syn::token::Type struct">Type</a></div><div class="item-right docblock-short"><code>type</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Typeof.html" title="syn::token::Typeof struct">Typeof</a></div><div class="item-right docblock-short"><code>typeof</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Underscore.html" title="syn::token::Underscore struct">Underscore</a></div><div class="item-right docblock-short"><code>_</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Union.html" title="syn::token::Union struct">Union</a></div><div class="item-right docblock-short"><code>union</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Unsafe.html" title="syn::token::Unsafe struct">Unsafe</a></div><div class="item-right docblock-short"><code>unsafe</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Unsized.html" title="syn::token::Unsized struct">Unsized</a></div><div class="item-right docblock-short"><code>unsized</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Use.html" title="syn::token::Use struct">Use</a></div><div class="item-right docblock-short"><code>use</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Virtual.html" title="syn::token::Virtual struct">Virtual</a></div><div class="item-right docblock-short"><code>virtual</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Where.html" title="syn::token::Where struct">Where</a></div><div class="item-right docblock-short"><code>where</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.While.html" title="syn::token::While struct">While</a></div><div class="item-right docblock-short"><code>while</code></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Yield.html" title="syn::token::Yield struct">Yield</a></div><div class="item-right docblock-short"><code>yield</code></div></div></div><h2 id="traits" class="small-section-header"><a href="#traits">Traits</a></h2><div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.Token.html" title="syn::token::Token trait">Token</a></div><div class="item-right docblock-short">Marker trait for types that represent single tokens.</div></div></div></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="syn" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.66.0-nightly (5c8bff74b 2022-10-21)" ></div></body></html>