<!DOCTYPE html><htmllang="en"><head><metacharset="utf-8"><metaname="viewport"content="width=device-width, initial-scale=1.0"><metaname="generator"content="rustdoc"><metaname="description"content="API documentation for the Rust `Expr` enum in crate `syn`."><metaname="keywords"content="rust, rustlang, rust-lang, Expr"><title>syn::Expr - Rust</title><linkrel="stylesheet"type="text/css"href="../normalize.css"><linkrel="stylesheet"type="text/css"href="../rustdoc.css"id="mainThemeStyle"><linkrel="stylesheet"type="text/css"href="../dark.css"><linkrel="stylesheet"type="text/css"href="../light.css"id="themeStyle"><scriptsrc="../storage.js"></script><noscript><linkrel="stylesheet"href="../noscript.css"></noscript><linkrel="shortcut icon"href="../favicon.ico"><styletype="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><bodyclass="rustdoc enum"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><navclass="sidebar"><divclass="sidebar-menu">☰</div><ahref='../syn/index.html'><divclass='logo-container'><imgsrc='../rust-logo.png'alt='logo'></div></a><pclass='location'>Enum Expr</p><divclass="sidebar-elems"><divclass="block items"><aclass="sidebar-title"href="#variants">Variants</a><divclass="sidebar-links"><ahref="#variant.Array">Array</a><ahref="#variant.Assign">Assign</a><ahref="#variant.AssignOp">AssignOp</a><ahref="#variant.Async">Async</a><ahref="#variant.Await">Await</a><ahref="#variant.Binary">Binary</a><ahref="#variant.Block">Block</a><ahref="#variant.Box">Box</a><ahref="#variant.Break">Break</a><ahref="#variant.Call">Call</a><ahref="#variant.Cast">Cast</a><ahref="#variant.Closure">Closure</a><ahref="#variant.Continue">Continue</a><ahref="#variant.Field">Field</a><ahref="#variant.ForLoop">ForLoop</a><ahref="#variant.Group">Group</a><ahref="#variant.If">If</a><ahref="#variant.Index">Index</a><ahref="#variant.Let">Let</a><ahref="#variant.Lit">Lit</a><ahref="#variant.Loop">Loop</a><ahref="#variant.Macro">Macro</a><ahref="#variant.Match">Match</a><ahref="#variant.MethodCall">MethodCall</a><ahref="#variant.Paren">Paren</a><ahref="#variant.Path">Path</a><ahref="#variant.Range">Range</a><ahref="#variant.Reference">Reference</a><ahref="#variant.Repeat">Repeat</a><ahref="#variant.Return">Return</a><ahref="#variant.Struct">Struct</a><ahref="#variant.Try">Try</a><ahref="#variant.TryBlock">TryBlock</a><ahref="#variant.Tuple">Tuple</a><ahref="#variant.Type">Type</a><ahref="#variant.Unary">Unary</a><ahref="#variant.Unsafe">Unsafe</a><ahref="#variant.Verbatim">Verbatim</a><ahref="#variant.While">While</a><ahref="#variant.Yield">Yield</a></div><aclass="sidebar-title"href="#implementations">Trait Implementations</a><divclass="sidebar-links"><ahref="#impl-Clone">Clone</a><ahref="#impl-From%3CExprArray%3E">From<ExprArray></a><ahref="#impl-From%3CExprAssign%3E">From<ExprAssign></a><ahref="#impl-From%3CExprAssignOp%3E">From<ExprAssignOp></a><ahref="#impl-From%3CExprAsync%3E">From<ExprAsync></a><ahref="#impl-From%3CExprAwait%3E">From<ExprAwait></a><ahref="#impl-From%3CExprBinary%3E">From<ExprBinary></a><ahref="#impl-From%3CExprBlock%3E">From<ExprBlock></a><ahref="#impl-From%3CExprBox%3E">From<ExprBox></a><ahref="#impl-From%3CExprBreak%3E">From<ExprBreak></a><ahref="#impl-From%3CExprCall%3E">From<ExprCall></a><ahref="#impl-From%3CExprCast%3E">From<ExprCast></a><ahref="#impl-From%3CExprClosure%3E">From<ExprClosure></a><ahref="#impl-From%3CExprContinue%3E">From<ExprContinue></a><ahref="#impl-From%3CExprField%3E">From<ExprField></a><ahref="#impl-From%3CExprForLoop%3E">From<ExprForLoop></a><ahref="#impl-From%3CExprGroup%3E">From<ExprGroup></a><ahref="#impl-From%3CExprIf%3E">From<ExprIf></a><ahref="#impl-From%3CExprIndex%3E">From<ExprIndex></a><ahref="#impl-From%3CExprLet%3E">From<ExprLet></a><ahref="#impl-From%3CExprLit%
</div><spanid="variant.Break"class="variant small-section-header"><ahref="#variant.Break"class="anchor field"></a><codeid='Break.v'>Break(<aclass="struct"href="../syn/struct.ExprBreak.html"title="struct syn::ExprBreak">ExprBreak</a>)</code></span><divclass='docblock'><p>A <code>break</code>, with an optional label to break and an optional
expression.</p>
</div><spanid="variant.Call"class="variant small-section-header"><ahref="#variant.Call"class="anchor field"></a><codeid='Call.v'>Call(<aclass="struct"href="../syn/struct.ExprCall.html"title="struct syn::ExprCall">ExprCall</a>)</code></span><divclass='docblock'><p>A function call expression: <code>invoke(a, b)</code>.</p>
</div><spanid="variant.Cast"class="variant small-section-header"><ahref="#variant.Cast"class="anchor field"></a><codeid='Cast.v'>Cast(<aclass="struct"href="../syn/struct.ExprCast.html"title="struct syn::ExprCast">ExprCast</a>)</code></span><divclass='docblock'><p>A cast expression: <code>foo as f64</code>.</p>
</div><spanid="variant.Continue"class="variant small-section-header"><ahref="#variant.Continue"class="anchor field"></a><codeid='Continue.v'>Continue(<aclass="struct"href="../syn/struct.ExprContinue.html"title="struct syn::ExprContinue">ExprContinue</a>)</code></span><divclass='docblock'><p>A <code>continue</code>, with an optional label.</p>
</div><spanid="variant.Field"class="variant small-section-header"><ahref="#variant.Field"class="anchor field"></a><codeid='Field.v'>Field(<aclass="struct"href="../syn/struct.ExprField.html"title="struct syn::ExprField">ExprField</a>)</code></span><divclass='docblock'><p>Access of a named struct field (<code>obj.k</code>) or unnamed tuple struct
field (<code>obj.0</code>).</p>
</div><spanid="variant.ForLoop"class="variant small-section-header"><ahref="#variant.ForLoop"class="anchor field"></a><codeid='ForLoop.v'>ForLoop(<aclass="struct"href="../syn/struct.ExprForLoop.html"title="struct syn::ExprForLoop">ExprForLoop</a>)</code></span><divclass='docblock'><p>A for loop: <code>for pat in expr { ... }</code>.</p>
</div><spanid="variant.Group"class="variant small-section-header"><ahref="#variant.Group"class="anchor field"></a><codeid='Group.v'>Group(<aclass="struct"href="../syn/struct.ExprGroup.html"title="struct syn::ExprGroup">ExprGroup</a>)</code></span><divclass='docblock'><p>An expression contained within invisible delimiters.</p>
<p>This variant is important for faithfully representing the precedence
of expressions and is related to <code>None</code>-delimited spans in a
<code>TokenStream</code>.</p>
</div><spanid="variant.If"class="variant small-section-header"><ahref="#variant.If"class="anchor field"></a><codeid='If.v'>If(<aclass="struct"href="../syn/struct.ExprIf.html"title="struct syn::ExprIf">ExprIf</a>)</code></span><divclass='docblock'><p>An <code>if</code> expression with an optional <code>else</code> block: <code>if expr { ... } else { ... }</code>.</p>
<p>The <code>else</code> branch expression may only be an <code>If</code> or <code>Block</code>
expression, not any of the other types of expression.</p>
</div><spanid="variant.Lit"class="variant small-section-header"><ahref="#variant.Lit"class="anchor field"></a><codeid='Lit.v'>Lit(<aclass="struct"href="../syn/struct.ExprLit.html"title="struct syn::ExprLit">ExprLit</a>)</code></span><divclass='docblock'><p>A literal in place of an expression: <code>1</code>, <code>"foo"</code>.</p>
</div><spanid="variant.Reference"class="variant small-section-header"><ahref="#variant.Reference"class="anchor field"></a><codeid='Reference.v'>Reference(<aclass="struct"href="../syn/struct.ExprReference.html"title="struct syn::ExprReference">ExprReference</a>)</code></span><divclass='docblock'><p>A referencing operation: <code>&a</code> or <code>&mut a</code>.</p>
</div><spanid="variant.Repeat"class="variant small-section-header"><ahref="#variant.Repeat"class="anchor field"></a><codeid='Repeat.v'>Repeat(<aclass="struct"href="../syn/struct.ExprRepeat.html"title="struct syn::ExprRepeat">ExprRepeat</a>)</code></span><divclass='docblock'><p>An array literal constructed from one repeated element: <code>[0u8; N]</code>.</p>
</div><spanid="variant.Return"class="variant small-section-header"><ahref="#variant.Return"class="anchor field"></a><codeid='Return.v'>Return(<aclass="struct"href="../syn/struct.ExprReturn.html"title="struct syn::ExprReturn">ExprReturn</a>)</code></span><divclass='docblock'><p>A <code>return</code>, with an optional value to be returned.</p>
</div><spanid="variant.Verbatim"class="variant small-section-header"><ahref="#variant.Verbatim"class="anchor field"></a><codeid='Verbatim.v'>Verbatim(<aclass="struct"href="../proc_macro2/struct.TokenStream.html"title="struct proc_macro2::TokenStream">TokenStream</a>)</code></span><divclass='docblock'><p>Tokens in expression position not interpreted by Syn.</p>
</div></div></div><h2id='synthetic-implementations'class='small-section-header'>Auto Trait Implementations<ahref='#synthetic-implementations'class='anchor'></a></h2><divid='synthetic-implementations-list'><h3id='impl-Sync'class='impl'><codeclass='in-band'>impl !<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html"title="trait core::marker::Sync">Sync</a> for <aclass="enum"href="../syn/enum.Expr.html"title="enum syn::Expr">Expr</a></code><ahref='#impl-Sync'class='anchor'></a></h3><divclass='impl-items'></div><h3id='impl-Send'class='impl'><codeclass='in-band'>impl !<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html"title="trait core::marker::Send">Send</a> for <aclass="enum"href="../syn/enum.Expr.html"title="enum syn::Expr">Expr</a></code><ahref='#impl-Send'class='anchor'></a></h3><divclass='impl-items'></div><h3id='impl-Unpin'class='impl'><codeclass='in-band'>impl <aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html"title="trait core::marker::Unpin">Unpin</a> for <aclass="enum"href="../syn/enum.Expr.html"title="enum syn::Expr">Expr</a></code><ahref='#impl-Unpin'class='anchor'></a></h3><divclass='impl-items'></div><h3id='impl-RefUnwindSafe'class='impl'><codeclass='in-band'>impl !<aclass="trait"href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html"title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <aclass="enum"href="../syn/enum.Expr.html"title="enum syn::Expr">Expr</a></code><ahref='#impl-RefUnwindSafe'class='anchor'></a></h3><divclass='impl-items'></div><h3id='impl-UnwindSafe'class='impl'><codeclass='in-band'>impl <aclass="trait"href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html"title="trait std::panic::UnwindSafe">UnwindSafe</a> for <aclass="enum"href="../syn/enum.Expr.html"title="enum syn::Expr">Expr</a></code><ahref='#impl-UnwindSafe'class='anchor'></a></h3><divclass='impl-items'></div></div><h2id='blanket-implementations'class='small-section-header'>Blanket Implementations<ahref='#blanket-implementations'class='anchor'></a></h2><divid='blanket-implementations-list'><h3id='impl-Spanned'class='impl'><codeclass='in-band'>impl<T><aclass="trait"href="../syn/spanned/trait.Spanned.html"title="trait syn::spanned::Spanned">Spanned</a> for T <spanclass="where fmt-newline">where<br> T: Spanned + ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>, </span></code><ahref='#impl-Spanned'class='anchor'></a><aclass='srclink'href='../src/syn/spanned.rs.html#110-114'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='method.span'class="method hidden"><codeid='span.v'>fn <ahref='../syn/spanned/trait.Spanned.html#tymethod.span'class='fnname'>span</a>(<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self) -><aclass="struct"href="../proc_macro2/struct.Span.html"title="struct proc_macro2::Span">Span</a></code><aclass='srclink'href='../src/syn/spanned.rs.html#111-113'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Returns a <code>Span</code> covering the complete contents of this syntax tree node, or [<code>Span::call_site()</code>] if this node is empty. <ahref="../syn/spanned/trait.Spanned.html#tymethod.span">Read more</a></p>
</div></div><h3id='impl-ToOwned'class='impl'><codeclass='in-band'>impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html"title="trait alloc::borrow::ToOwned">ToOwned</a> for T <spanclass="where fmt-newline">where<br> T: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html"title="trait core::clone::Clone">Clone</a>, </span></code><ahref='#impl-ToOwned'class='anchor'></a><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#81-92'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='associatedtype.Owned'class="type"><codeid='Owned.t'>type <ahref='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#associatedtype.Owned'class="type">Owned</a> = T</code></h4><divclass='docblock'><p>The resulting type after obtaining ownership.</p>
</div><h4id='method.to_owned'class="method hidden"><codeid='to_owned.v'>fn <ahref='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned'class='fnname'>to_owned</a>(&self) -> T</code><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#85-87'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Creates owned data from borrowed data, usually by cloning. <ahref="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></p>
</div><h4id='method.clone_into'class="method hidden"><codeid='clone_into.v'>fn <ahref='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into'class='fnname'>clone_into</a>(&self, target: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T)</code><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#89-91'title='goto source code'>[src]</a></h4><divclass='stability hidden'><divclass='stab unstable'><details><summary><spanclass='emoji'>🔬</span> This is a nightly-only experimental API. (<code>toowned_clone_into</code>)</summary><p>recently added</p>
</details></div></div><divclass='docblock hidden'><p>Uses borrowed data to replace owned data, usually by cloning. <ahref="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></p>
</div></div><h3id='impl-TryFrom%3CU%3E'class='impl'><codeclass='in-band'>impl<T, U><aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><U> for T <spanclass="where fmt-newline">where<br> U: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html"title="trait core::convert::Into">Into</a><T>, </span></code><ahref='#impl-TryFrom%3CU%3E'class='anchor'></a><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#571-577'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='associatedtype.Error'class="type"><codeid='Error.t'>type <ahref='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error'class="type">Error</a> = <aclass="enum"href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html"title="enum core::convert::Infallible">Infallible</a></code></h4><divclass='docblock'><p>The type returned in the event of a conversion error.</p>
</div><h4id='method.try_from'class="method hidden"><codeid='try_from.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from'class='fnname'>try_from</a>(value: U) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><T, <T as <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><U>>::<aclass="type"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a>></code><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#574-576'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3id='impl-TryInto%3CU%3E'class='impl'><codeclass='in-band'>impl<T, U><aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html"title="trait core::convert::TryInto">TryInto</a><U> for T <spanclass="where fmt-newline">where<br> U: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>, </span></code><ahref='#impl-TryInto%3CU%3E'class='anchor'></a><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#559-566'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='associatedtype.Error-1'class="type"><codeid='Error.t-1'>type <ahref='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error'class="type">Error</a> = <U as <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>>::<aclass="type"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a></code></h4><divclass='docblock'><p>The type returned in the event of a conversion error.</p>
</div><h4id='method.try_into'class="method hidden"><codeid='try_into.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into'class='fnname'>try_into</a>(self) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><U, <U as <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>>::<aclass="type"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a>></code><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#563-565'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3id='impl-BorrowMut%3CT%3E'class='impl'><codeclass='in-band'>impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html"title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <spanclass="where fmt-newline">where<br> T: ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>, </span></code><ahref='#impl-BorrowMut%3CT%3E'class='anchor'></a><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#218-220'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='method.borrow_mut'class="method hidden"><codeid='borrow_mut.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut'class='fnname'>borrow_mut</a>(&mut self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T</code><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#219'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Mutably borrows from an owned value. <ahref="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
</div></div><h3id='impl-Borrow%3CT%3E'class='impl'><codeclass='in-band'>impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html"title="trait core::borrow::Borrow">Borrow</a><T> for T <spanclass="where fmt-newline">where<br> T: ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>, </span></code><ahref='#impl-Borrow%3CT%3E'class='anchor'></a><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#213-215'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='method.borrow'class="method hidden"><codeid='borrow.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow'class='fnname'>borrow</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#214'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Immutably borrows from an owned value. <ahref="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
</div></div><h3id='impl-Any'class='impl'><codeclass='in-band'>impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html"title="trait core::any::Any">Any</a> for T <spanclass="where fmt-newline">where<br> T: 'static + ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>, </span></code><ahref='#impl-Any'class='anchor'></a><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#100-102'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='method.type_id'class="method hidden"><codeid='type_id.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id'class='fnname'>type_id</a>(&self) -><aclass="struct"href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html"title="struct core::any::TypeId">TypeId</a></code><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#101'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <ahref="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
</div></div></div></section><sectionid="search"class="content hidden"></section><sectionclass="footer"></section><asideid="help"class="hidden"><div><h1class="hidden">Help</h1><divclass="shortcuts"><h2>Keyboard Shortcuts</h2><dl><dt><kbd>?</kbd></dt><dd>Show this help dialog</dd><dt><kbd>S</kbd></dt><dd>Focus the search field</dd><dt><kbd>↑</kbd></dt><dd>Move up in search results</dd><dt><kbd>↓</kbd></dt><dd>Move down in search results</dd><dt><kbd>↹</kbd></dt><dd>Switch tab</dd><dt><kbd>⏎</kbd></dt><dd>Go to active search result</dd><dt><kbd>+</kbd></dt><dd>Expand all sections</dd><dt><kbd>-</kbd></dt><dd>Collapse all sections</dd></dl></div><divclass="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><scriptsrc="../aliases.js"></script><scriptsrc="../main.js"></script><scriptdefersrc="../search-index.js"></script></body></html>