mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2026-01-23 17:25:51 +00:00
212 lines
108 KiB
HTML
212 lines
108 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `SyntaxFactory` struct in crate `syntax`."><title>SyntaxFactory in syntax::ast::syntax_factory - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="syntax" data-themes="" data-resource-suffix="" data-rustdoc-version="1.93.0 (254b59607 2026-01-19)" data-channel="1.93.0" data-search-js="search-9e2438ea.js" data-stringdex-js="stringdex-a3946164.js" data-settings-js="settings-c38705f0.js" ><script src="../../../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-a410ff4d.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc struct"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">SyntaxFactory</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../syntax/index.html">syntax</a><span class="version">0.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Syntax<wbr>Factory</a></h2><h3><a href="#fields">Fields</a></h3><ul class="block structfield"><li><a href="#structfield.mappings" title="mappings">mappings</a></li></ul><h3><a href="#implementations">Methods</a></h3><ul class="block method"><li><a href="#method.arg_list" title="arg_list">arg_list</a></li><li><a href="#method.assoc_item_list" title="assoc_item_list">assoc_item_list</a></li><li><a href="#method.attr_inner" title="attr_inner">attr_inner</a></li><li><a href="#method.attr_outer" title="attr_outer">attr_outer</a></li><li><a href="#method.block_expr" title="block_expr">block_expr</a></li><li><a href="#method.box_pat" title="box_pat">box_pat</a></li><li><a href="#method.const_param" title="const_param">const_param</a></li><li><a href="#method.expr_assignment" title="expr_assignment">expr_assignment</a></li><li><a href="#method.expr_bin" title="expr_bin">expr_bin</a></li><li><a href="#method.expr_call" title="expr_call">expr_call</a></li><li><a href="#method.expr_closure" title="expr_closure">expr_closure</a></li><li><a href="#method.expr_empty_block" title="expr_empty_block">expr_empty_block</a></li><li><a href="#method.expr_field" title="expr_field">expr_field</a></li><li><a href="#method.expr_for_loop" title="expr_for_loop">expr_for_loop</a></li><li><a href="#method.expr_if" title="expr_if">expr_if</a></li><li><a href="#method.expr_let" title="expr_let">expr_let</a></li><li><a href="#method.expr_literal" title="expr_literal">expr_literal</a></li><li><a href="#method.expr_loop" title="expr_loop">expr_loop</a></li><li><a href="#method.expr_macro" title="expr_macro">expr_macro</a></li><li><a href="#method.expr_match" title="expr_match">expr_match</a></li><li><a href="#method.expr_method_call" title="expr_method_call">expr_method_call</a></li><li><a href="#method.expr_paren" title="expr_paren">expr_paren</a></li><li><a href="#method.expr_path" title="expr_path">expr_path</a></li><li><a href="#method.expr_prefix" title="expr_prefix">expr_prefix</a></li><li><a href="#method.expr_raw_ref" title="expr_raw_ref">expr_raw_ref</a></li><li><a href="#method.expr_ref" title="expr_ref">expr_ref</a></li><li><a href="#method.expr_return" title="expr_return">expr_return</a></li><li><a href="#method.expr_stmt" title="expr_stmt">expr_stmt</a></li><li><a href="#method.expr_tuple" title="expr_tuple">expr_tuple</a></li><li><a href="#method.expr_underscore" title="expr_underscore">expr_underscore</a></li><li><a href="#method.expr_unit" title="expr_unit">expr_unit</a></li><li><a href="#method.expr_while_loop" title="expr_while_loop">expr_while_loop</a></li><li><a href="#method.finish_with_mappings" title="finish_with_mappings">finish_with_mappings</a></li><li><a href="#method.fn_" title="fn_">fn_</a></li><li><a href="#method.generic_arg_list" title="generic_arg_list">generic_arg_list</a></li><li><a href="#method.generic_param_list" title="generic_param_list">generic_param_list</a></li><li><a href="#method.ident" title="ident">ident</a></li><li><a href="#method.ident_pat" title="ident_pat">ident_pat</a></li><li><a href="#method.ident_path" title="ident_path">ident_path</a></li><li><a href="#method.impl_trait" title="impl_trait">impl_trait</a></li><li><a href="#method.item_const" title="item_const">item_const</a></li><li><a href="#method.item_enum" title="item_enum">item_enum</a></li><li><a href="#method.item_static" title="item_static">item_static</a></li><li><a href="#method.let_else_stmt" title="let_else_stmt">let_else_stmt</a></li><li><a href="#method.let_stmt" title="let_stmt">let_stmt</a></li><li><a href="#method.lifetime" title="lifetime">lifetime</a></li><li><a href="#method.lifetime_arg" title="lifetime_arg">lifetime_arg</a></li><li><a href="#method.literal_pat" title="literal_pat">literal_pat</a></li><li><a href="#method.mappings" title="mappings">mappings</a></li><li><a href="#method.match_arm" title="match_arm">match_arm</a></li><li><a href="#method.match_arm_list" title="match_arm_list">match_arm_list</a></li><li><a href="#method.match_guard" title="match_guard">match_guard</a></li><li><a href="#method.meta_token_tree" title="meta_token_tree">meta_token_tree</a></li><li><a href="#method.mut_self_param" title="mut_self_param">mut_self_param</a></li><li><a href="#method.name" title="name">name</a></li><li><a href="#method.name_ref" title="name_ref">name_ref</a></li><li><a href="#method.or_pat" title="or_pat">or_pat</a></li><li><a href="#method.param" title="param">param</a></li><li><a href="#method.param_list" title="param_list">param_list</a></li><li><a href="#method.paren_pat" title="paren_pat">paren_pat</a></li><li><a href="#method.path_from_segments" title="path_from_segments">path_from_segments</a></li><li><a href="#method.path_from_text" title="path_from_text">path_from_text</a></li><li><a href="#method.path_pat" title="path_pat">path_pat</a></li><li><a href="#method.path_segment" title="path_segment">path_segment</a></li><li><a href="#method.path_segment_generics" title="path_segment_generics">path_segment_generics</a></li><li><a href="#method.path_unqualified" title="path_unqualified">path_unqualified</a></li><li><a href="#method.range_pat" title="range_pat">range_pat</a></li><li><a href="#method.record_expr" title="record_expr">record_expr</a></li><li><a href="#method.record_expr_field" title="record_expr_field">record_expr_field</a></li><li><a href="#method.record_field" title="record_field">record_field</a></li><li><a href="#method.record_field_list" title="record_field_list">record_field_list</a></li><li><a href="#method.record_pat_field" title="record_pat_field">record_pat_field</a></li><li><a href="#method.record_pat_field_list" title="record_pat_field_list">record_pat_field_list</a></li><li><a href="#method.record_pat_field_shorthand" title="record_pat_field_shorthand">record_pat_field_shorthand</a></li><li><a href="#method.record_pat_with_fields" title="record_pat_with_fields">record_pat_with_fields</a></li><li><a href="#method.ref_pat" title="ref_pat">ref_pat</a></li><li><a href="#method.rest_pat" title="rest_pat">rest_pat</a></li><li><a href="#method.ret_type" title="ret_type">ret_type</a></li><li><a href="#method.slice_pat" title="slice_pat">slice_pat</a></li><li><a href="#method.take" title="take">take</a></li><li><a href="#method.token" title="token">token</a></li><li><a href="#method.token_tree" title="token_tree">token_tree</a></li><li><a href="#method.tuple_field" title="tuple_field">tuple_field</a></li><li><a href="#method.tuple_field_list" title="tuple_field_list">tuple_field_list</a></li><li><a href="#method.tuple_pat" title="tuple_pat">tuple_pat</a></li><li><a href="#method.tuple_struct_pat" title="tuple_struct_pat">tuple_struct_pat</a></li><li><a href="#method.ty" title="ty">ty</a></li><li><a href="#method.ty_alias" title="ty_alias">ty_alias</a></li><li><a href="#method.ty_infer" title="ty_infer">ty_infer</a></li><li><a href="#method.ty_option" title="ty_option">ty_option</a></li><li><a href="#method.ty_path" title="ty_path">ty_path</a></li><li><a href="#method.ty_ref" title="ty_ref">ty_ref</a></li><li><a href="#method.ty_result" title="ty_result">ty_result</a></li><li><a href="#method.type_arg" title="type_arg">type_arg</a></li><li><a href="#method.type_param" title="type_param">type_param</a></li><li><a href="#method.use_" title="use_">use_</a></li><li><a href="#method.use_tree" title="use_tree">use_tree</a></li><li><a href="#method.variant" title="variant">variant</a></li><li><a href="#method.variant_list" title="variant_list">variant_list</a></li><li><a href="#method.whitespace" title="whitespace">whitespace</a></li><li><a href="#method.wildcard_pat" title="wildcard_pat">wildcard_pat</a></li><li><a href="#method.with_mappings" title="with_mappings">with_mappings</a></li><li><a href="#method.without_mappings" title="without_mappings">without_mappings</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block trait-implementation"><li><a href="#impl-Default-for-SyntaxFactory" title="Default">Default</a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block synthetic-implementation"><li><a href="#impl-Freeze-for-SyntaxFactory" title="!Freeze">!Freeze</a></li><li><a href="#impl-RefUnwindSafe-for-SyntaxFactory" title="!RefUnwindSafe">!RefUnwindSafe</a></li><li><a href="#impl-Send-for-SyntaxFactory" title="!Send">!Send</a></li><li><a href="#impl-Sync-for-SyntaxFactory" title="!Sync">!Sync</a></li><li><a href="#impl-UnwindSafe-for-SyntaxFactory" title="!UnwindSafe">!UnwindSafe</a></li><li><a href="#impl-Unpin-for-SyntaxFactory" title="Unpin">Unpin</a></li></ul><h3><a href="#blanket-implementations">Blanket Implementations</a></h3><ul class="block blanket-implementation"><li><a href="#impl-Any-for-T" title="Any">Any</a></li><li><a href="#impl-Borrow%3CT%3E-for-T" title="Borrow<T>">Borrow<T></a></li><li><a href="#impl-BorrowMut%3CT%3E-for-T" title="BorrowMut<T>">BorrowMut<T></a></li><li><a href="#impl-From%3CT%3E-for-T" title="From<T>">From<T></a></li><li><a href="#impl-Instrument-for-T" title="Instrument">Instrument</a></li><li><a href="#impl-Into%3CU%3E-for-T" title="Into<U>">Into<U></a></li><li><a href="#impl-IntoBox%3Cdyn+Any%3E-for-T" title="IntoBox<dyn Any>">IntoBox<dyn Any></a></li><li><a href="#impl-IntoEither-for-T" title="IntoEither">IntoEither</a></li><li><a href="#impl-TryFrom%3CU%3E-for-T" title="TryFrom<U>">TryFrom<U></a></li><li><a href="#impl-TryInto%3CU%3E-for-T" title="TryInto<U>">TryInto<U></a></li><li><a href="#impl-WithSubscriber-for-T" title="WithSubscriber">WithSubscriber</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In syntax::<wbr>ast::<wbr>syntax_<wbr>factory</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">syntax</a>::<wbr><a href="../index.html">ast</a>::<wbr><a href="index.html">syntax_factory</a></div><h1>Struct <span class="struct">Syntax<wbr>Factory</span> <button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/syntax/ast/syntax_factory.rs.html#15-18">Source</a> </span></div><pre class="rust item-decl"><code>pub struct SyntaxFactory {
|
|
mappings: <a class="enum" href="https://doc.rust-lang.org/1.93.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://doc.rust-lang.org/1.93.0/core/cell/struct.RefCell.html" title="struct core::cell::RefCell">RefCell</a><<a class="struct" href="../../syntax_editor/struct.SyntaxMapping.html" title="struct syntax::syntax_editor::SyntaxMapping">SyntaxMapping</a>>>,
|
|
}</code></pre><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.mappings" class="structfield section-header"><a href="#structfield.mappings" class="anchor field">§</a><code>mappings: <a class="enum" href="https://doc.rust-lang.org/1.93.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://doc.rust-lang.org/1.93.0/core/cell/struct.RefCell.html" title="struct core::cell::RefCell">RefCell</a><<a class="struct" href="../../syntax_editor/struct.SyntaxMapping.html" title="struct syntax::syntax_editor::SyntaxMapping">SyntaxMapping</a>>></code></span><h2 id="implementations" class="section-header">Implementations<a href="#implementations" class="anchor">§</a></h2><div id="implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-SyntaxFactory" class="impl"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#13-1619">Source</a><a href="#impl-SyntaxFactory" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.SyntaxFactory.html" title="struct syntax::ast::syntax_factory::SyntaxFactory">SyntaxFactory</a></h3></section></summary><div class="impl-items"><section id="method.name" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#14-16">Source</a><h4 class="code-header">pub fn <a href="#method.name" class="fn">name</a>(&self, name: &<a class="primitive" href="https://doc.rust-lang.org/1.93.0/std/primitive.str.html">str</a>) -> <a class="struct" href="../struct.Name.html" title="struct syntax::ast::Name">Name</a></h4></section><section id="method.name_ref" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#18-20">Source</a><h4 class="code-header">pub fn <a href="#method.name_ref" class="fn">name_ref</a>(&self, name: &<a class="primitive" href="https://doc.rust-lang.org/1.93.0/std/primitive.str.html">str</a>) -> <a class="struct" href="../struct.NameRef.html" title="struct syntax::ast::NameRef">NameRef</a></h4></section><section id="method.lifetime" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#22-24">Source</a><h4 class="code-header">pub fn <a href="#method.lifetime" class="fn">lifetime</a>(&self, text: &<a class="primitive" href="https://doc.rust-lang.org/1.93.0/std/primitive.str.html">str</a>) -> <a class="struct" href="../struct.Lifetime.html" title="struct syntax::ast::Lifetime">Lifetime</a></h4></section><section id="method.ty" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#26-28">Source</a><h4 class="code-header">pub fn <a href="#method.ty" class="fn">ty</a>(&self, text: &<a class="primitive" href="https://doc.rust-lang.org/1.93.0/std/primitive.str.html">str</a>) -> <a class="enum" href="../enum.Type.html" title="enum syntax::ast::Type">Type</a></h4></section><section id="method.ty_infer" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#30-36">Source</a><h4 class="code-header">pub fn <a href="#method.ty_infer" class="fn">ty_infer</a>(&self) -> <a class="struct" href="../struct.InferType.html" title="struct syntax::ast::InferType">InferType</a></h4></section><section id="method.ty_path" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#38-50">Source</a><h4 class="code-header">pub fn <a href="#method.ty_path" class="fn">ty_path</a>(&self, path: <a class="struct" href="../struct.Path.html" title="struct syntax::ast::Path">Path</a>) -> <a class="struct" href="../struct.PathType.html" title="struct syntax::ast::PathType">PathType</a></h4></section><section id="method.type_param" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#52-72">Source</a><h4 class="code-header">pub fn <a href="#method.type_param" class="fn">type_param</a>(&self, name: <a class="struct" href="../struct.Name.html" title="struct syntax::ast::Name">Name</a>, bounds: <a class="enum" href="https://doc.rust-lang.org/1.93.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../struct.TypeBoundList.html" title="struct syntax::ast::TypeBoundList">TypeBoundList</a>>) -> <a class="struct" href="../struct.TypeParam.html" title="struct syntax::ast::TypeParam">TypeParam</a></h4></section><section id="method.path_from_text" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#74-76">Source</a><h4 class="code-header">pub fn <a href="#method.path_from_text" class="fn">path_from_text</a>(&self, text: &<a class="primitive" href="https://doc.rust-lang.org/1.93.0/std/primitive.str.html">str</a>) -> <a class="struct" href="../struct.Path.html" title="struct syntax::ast::Path">Path</a></h4></section><section id="method.expr_field" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#78-92">Source</a><h4 class="code-header">pub fn <a href="#method.expr_field" class="fn">expr_field</a>(&self, receiver: <a class="enum" href="../enum.Expr.html" title="enum syntax::ast::Expr">Expr</a>, field: &<a class="primitive" href="https://doc.rust-lang.org/1.93.0/std/primitive.str.html">str</a>) -> <a class="struct" href="../struct.FieldExpr.html" title="struct syntax::ast::FieldExpr">FieldExpr</a></h4></section><section id="method.impl_trait" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#94-153">Source</a><h4 class="code-header">pub fn <a href="#method.impl_trait" class="fn">impl_trait</a>(
|
|
&self,
|
|
attrs: impl <a class="trait" href="https://doc.rust-lang.org/1.93.0/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = <a class="struct" href="../struct.Attr.html" title="struct syntax::ast::Attr">Attr</a>>,
|
|
is_unsafe: <a class="primitive" href="https://doc.rust-lang.org/1.93.0/std/primitive.bool.html">bool</a>,
|
|
trait_gen_params: <a class="enum" href="https://doc.rust-lang.org/1.93.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../struct.GenericParamList.html" title="struct syntax::ast::GenericParamList">GenericParamList</a>>,
|
|
trait_gen_args: <a class="enum" href="https://doc.rust-lang.org/1.93.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../struct.GenericArgList.html" title="struct syntax::ast::GenericArgList">GenericArgList</a>>,
|
|
type_gen_params: <a class="enum" href="https://doc.rust-lang.org/1.93.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../struct.GenericParamList.html" title="struct syntax::ast::GenericParamList">GenericParamList</a>>,
|
|
type_gen_args: <a class="enum" href="https://doc.rust-lang.org/1.93.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../struct.GenericArgList.html" title="struct syntax::ast::GenericArgList">GenericArgList</a>>,
|
|
is_negative: <a class="primitive" href="https://doc.rust-lang.org/1.93.0/std/primitive.bool.html">bool</a>,
|
|
path_type: <a class="enum" href="../enum.Type.html" title="enum syntax::ast::Type">Type</a>,
|
|
ty: <a class="enum" href="../enum.Type.html" title="enum syntax::ast::Type">Type</a>,
|
|
trait_where_clause: <a class="enum" href="https://doc.rust-lang.org/1.93.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../struct.WhereClause.html" title="struct syntax::ast::WhereClause">WhereClause</a>>,
|
|
ty_where_clause: <a class="enum" href="https://doc.rust-lang.org/1.93.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../struct.WhereClause.html" title="struct syntax::ast::WhereClause">WhereClause</a>>,
|
|
body: <a class="enum" href="https://doc.rust-lang.org/1.93.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../struct.AssocItemList.html" title="struct syntax::ast::AssocItemList">AssocItemList</a>>,
|
|
) -> <a class="struct" href="../struct.Impl.html" title="struct syntax::ast::Impl">Impl</a></h4></section><section id="method.ty_alias" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#155-203">Source</a><h4 class="code-header">pub fn <a href="#method.ty_alias" class="fn">ty_alias</a>(
|
|
&self,
|
|
attrs: impl <a class="trait" href="https://doc.rust-lang.org/1.93.0/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = <a class="struct" href="../struct.Attr.html" title="struct syntax::ast::Attr">Attr</a>>,
|
|
ident: &<a class="primitive" href="https://doc.rust-lang.org/1.93.0/std/primitive.str.html">str</a>,
|
|
generic_param_list: <a class="enum" href="https://doc.rust-lang.org/1.93.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../struct.GenericParamList.html" title="struct syntax::ast::GenericParamList">GenericParamList</a>>,
|
|
type_param_bounds: <a class="enum" href="https://doc.rust-lang.org/1.93.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../struct.TypeParam.html" title="struct syntax::ast::TypeParam">TypeParam</a>>,
|
|
where_clause: <a class="enum" href="https://doc.rust-lang.org/1.93.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../struct.WhereClause.html" title="struct syntax::ast::WhereClause">WhereClause</a>>,
|
|
assignment: <a class="enum" href="https://doc.rust-lang.org/1.93.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><(<a class="enum" href="../enum.Type.html" title="enum syntax::ast::Type">Type</a>, <a class="enum" href="https://doc.rust-lang.org/1.93.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../struct.WhereClause.html" title="struct syntax::ast::WhereClause">WhereClause</a>>)>,
|
|
) -> <a class="struct" href="../struct.TypeAlias.html" title="struct syntax::ast::TypeAlias">TypeAlias</a></h4></section><section id="method.param_list" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#205-225">Source</a><h4 class="code-header">pub fn <a href="#method.param_list" class="fn">param_list</a>(
|
|
&self,
|
|
self_param: <a class="enum" href="https://doc.rust-lang.org/1.93.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../struct.SelfParam.html" title="struct syntax::ast::SelfParam">SelfParam</a>>,
|
|
params: impl <a class="trait" href="https://doc.rust-lang.org/1.93.0/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = <a class="struct" href="../struct.Param.html" title="struct syntax::ast::Param">Param</a>>,
|
|
) -> <a class="struct" href="../struct.ParamList.html" title="struct syntax::ast::ParamList">ParamList</a></h4></section><section id="method.const_param" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#227-238">Source</a><h4 class="code-header">pub fn <a href="#method.const_param" class="fn">const_param</a>(&self, name: <a class="struct" href="../struct.Name.html" title="struct syntax::ast::Name">Name</a>, ty: <a class="enum" href="../enum.Type.html" title="enum syntax::ast::Type">Type</a>) -> <a class="struct" href="../struct.ConstParam.html" title="struct syntax::ast::ConstParam">ConstParam</a></h4></section><section id="method.generic_param_list" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#240-254">Source</a><h4 class="code-header">pub fn <a href="#method.generic_param_list" class="fn">generic_param_list</a>(
|
|
&self,
|
|
params: impl <a class="trait" href="https://doc.rust-lang.org/1.93.0/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = <a class="enum" href="../enum.GenericParam.html" title="enum syntax::ast::GenericParam">GenericParam</a>>,
|
|
) -> <a class="struct" href="../struct.GenericParamList.html" title="struct syntax::ast::GenericParamList">GenericParamList</a></h4></section><section id="method.path_segment" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#256-266">Source</a><h4 class="code-header">pub fn <a href="#method.path_segment" class="fn">path_segment</a>(&self, name_ref: <a class="struct" href="../struct.NameRef.html" title="struct syntax::ast::NameRef">NameRef</a>) -> <a class="struct" href="../struct.PathSegment.html" title="struct syntax::ast::PathSegment">PathSegment</a></h4></section><section id="method.path_segment_generics" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#268-290">Source</a><h4 class="code-header">pub fn <a href="#method.path_segment_generics" class="fn">path_segment_generics</a>(
|
|
&self,
|
|
name_ref: <a class="struct" href="../struct.NameRef.html" title="struct syntax::ast::NameRef">NameRef</a>,
|
|
generic_arg_list: <a class="struct" href="../struct.GenericArgList.html" title="struct syntax::ast::GenericArgList">GenericArgList</a>,
|
|
) -> <a class="struct" href="../struct.PathSegment.html" title="struct syntax::ast::PathSegment">PathSegment</a></h4></section><section id="method.use_" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#292-299">Source</a><h4 class="code-header">pub fn <a href="#method.use_" class="fn">use_</a>(
|
|
&self,
|
|
attrs: impl <a class="trait" href="https://doc.rust-lang.org/1.93.0/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = <a class="struct" href="../struct.Attr.html" title="struct syntax::ast::Attr">Attr</a>>,
|
|
visibility: <a class="enum" href="https://doc.rust-lang.org/1.93.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../struct.Visibility.html" title="struct syntax::ast::Visibility">Visibility</a>>,
|
|
use_tree: <a class="struct" href="../struct.UseTree.html" title="struct syntax::ast::UseTree">UseTree</a>,
|
|
) -> <a class="struct" href="../struct.Use.html" title="struct syntax::ast::Use">Use</a></h4></section><section id="method.use_tree" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#301-309">Source</a><h4 class="code-header">pub fn <a href="#method.use_tree" class="fn">use_tree</a>(
|
|
&self,
|
|
path: <a class="struct" href="../struct.Path.html" title="struct syntax::ast::Path">Path</a>,
|
|
use_tree_list: <a class="enum" href="https://doc.rust-lang.org/1.93.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../struct.UseTreeList.html" title="struct syntax::ast::UseTreeList">UseTreeList</a>>,
|
|
alias: <a class="enum" href="https://doc.rust-lang.org/1.93.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../struct.Rename.html" title="struct syntax::ast::Rename">Rename</a>>,
|
|
add_star: <a class="primitive" href="https://doc.rust-lang.org/1.93.0/std/primitive.bool.html">bool</a>,
|
|
) -> <a class="struct" href="../struct.UseTree.html" title="struct syntax::ast::UseTree">UseTree</a></h4></section><section id="method.path_unqualified" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#311-321">Source</a><h4 class="code-header">pub fn <a href="#method.path_unqualified" class="fn">path_unqualified</a>(&self, segment: <a class="struct" href="../struct.PathSegment.html" title="struct syntax::ast::PathSegment">PathSegment</a>) -> <a class="struct" href="../struct.Path.html" title="struct syntax::ast::Path">Path</a></h4></section><section id="method.path_from_segments" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#323-338">Source</a><h4 class="code-header">pub fn <a href="#method.path_from_segments" class="fn">path_from_segments</a>(
|
|
&self,
|
|
segments: impl <a class="trait" href="https://doc.rust-lang.org/1.93.0/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = <a class="struct" href="../struct.PathSegment.html" title="struct syntax::ast::PathSegment">PathSegment</a>>,
|
|
is_abs: <a class="primitive" href="https://doc.rust-lang.org/1.93.0/std/primitive.bool.html">bool</a>,
|
|
) -> <a class="struct" href="../struct.Path.html" title="struct syntax::ast::Path">Path</a></h4></section><section id="method.ident_pat" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#340-350">Source</a><h4 class="code-header">pub fn <a href="#method.ident_pat" class="fn">ident_pat</a>(&self, ref_: <a class="primitive" href="https://doc.rust-lang.org/1.93.0/std/primitive.bool.html">bool</a>, mut_: <a class="primitive" href="https://doc.rust-lang.org/1.93.0/std/primitive.bool.html">bool</a>, name: <a class="struct" href="../struct.Name.html" title="struct syntax::ast::Name">Name</a>) -> <a class="struct" href="../struct.IdentPat.html" title="struct syntax::ast::IdentPat">IdentPat</a></h4></section><section id="method.wildcard_pat" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#352-354">Source</a><h4 class="code-header">pub fn <a href="#method.wildcard_pat" class="fn">wildcard_pat</a>(&self) -> <a class="struct" href="../struct.WildcardPat.html" title="struct syntax::ast::WildcardPat">WildcardPat</a></h4></section><section id="method.literal_pat" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#356-358">Source</a><h4 class="code-header">pub fn <a href="#method.literal_pat" class="fn">literal_pat</a>(&self, text: &<a class="primitive" href="https://doc.rust-lang.org/1.93.0/std/primitive.str.html">str</a>) -> <a class="struct" href="../struct.LiteralPat.html" title="struct syntax::ast::LiteralPat">LiteralPat</a></h4></section><section id="method.slice_pat" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#360-371">Source</a><h4 class="code-header">pub fn <a href="#method.slice_pat" class="fn">slice_pat</a>(&self, pats: impl <a class="trait" href="https://doc.rust-lang.org/1.93.0/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = <a class="enum" href="../enum.Pat.html" title="enum syntax::ast::Pat">Pat</a>>) -> <a class="struct" href="../struct.SlicePat.html" title="struct syntax::ast::SlicePat">SlicePat</a></h4></section><section id="method.tuple_pat" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#373-384">Source</a><h4 class="code-header">pub fn <a href="#method.tuple_pat" class="fn">tuple_pat</a>(&self, pats: impl <a class="trait" href="https://doc.rust-lang.org/1.93.0/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = <a class="enum" href="../enum.Pat.html" title="enum syntax::ast::Pat">Pat</a>>) -> <a class="struct" href="../struct.TuplePat.html" title="struct syntax::ast::TuplePat">TuplePat</a></h4></section><section id="method.tuple_struct_pat" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#386-402">Source</a><h4 class="code-header">pub fn <a href="#method.tuple_struct_pat" class="fn">tuple_struct_pat</a>(
|
|
&self,
|
|
path: <a class="struct" href="../struct.Path.html" title="struct syntax::ast::Path">Path</a>,
|
|
fields: impl <a class="trait" href="https://doc.rust-lang.org/1.93.0/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = <a class="enum" href="../enum.Pat.html" title="enum syntax::ast::Pat">Pat</a>>,
|
|
) -> <a class="struct" href="../struct.TupleStructPat.html" title="struct syntax::ast::TupleStructPat">TupleStructPat</a></h4></section><section id="method.record_pat_with_fields" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#404-422">Source</a><h4 class="code-header">pub fn <a href="#method.record_pat_with_fields" class="fn">record_pat_with_fields</a>(
|
|
&self,
|
|
path: <a class="struct" href="../struct.Path.html" title="struct syntax::ast::Path">Path</a>,
|
|
fields: <a class="struct" href="../struct.RecordPatFieldList.html" title="struct syntax::ast::RecordPatFieldList">RecordPatFieldList</a>,
|
|
) -> <a class="struct" href="../struct.RecordPat.html" title="struct syntax::ast::RecordPat">RecordPat</a></h4></section><section id="method.record_pat_field_list" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#424-443">Source</a><h4 class="code-header">pub fn <a href="#method.record_pat_field_list" class="fn">record_pat_field_list</a>(
|
|
&self,
|
|
fields: impl <a class="trait" href="https://doc.rust-lang.org/1.93.0/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = <a class="struct" href="../struct.RecordPatField.html" title="struct syntax::ast::RecordPatField">RecordPatField</a>>,
|
|
rest_pat: <a class="enum" href="https://doc.rust-lang.org/1.93.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../struct.RestPat.html" title="struct syntax::ast::RestPat">RestPat</a>>,
|
|
) -> <a class="struct" href="../struct.RecordPatFieldList.html" title="struct syntax::ast::RecordPatFieldList">RecordPatFieldList</a></h4></section><section id="method.record_pat_field" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#445-456">Source</a><h4 class="code-header">pub fn <a href="#method.record_pat_field" class="fn">record_pat_field</a>(&self, name_ref: <a class="struct" href="../struct.NameRef.html" title="struct syntax::ast::NameRef">NameRef</a>, pat: <a class="enum" href="../enum.Pat.html" title="enum syntax::ast::Pat">Pat</a>) -> <a class="struct" href="../struct.RecordPatField.html" title="struct syntax::ast::RecordPatField">RecordPatField</a></h4></section><section id="method.record_pat_field_shorthand" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#458-468">Source</a><h4 class="code-header">pub fn <a href="#method.record_pat_field_shorthand" class="fn">record_pat_field_shorthand</a>(&self, pat: <a class="enum" href="../enum.Pat.html" title="enum syntax::ast::Pat">Pat</a>) -> <a class="struct" href="../struct.RecordPatField.html" title="struct syntax::ast::RecordPatField">RecordPatField</a></h4></section><section id="method.path_pat" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#470-492">Source</a><h4 class="code-header">pub fn <a href="#method.path_pat" class="fn">path_pat</a>(&self, path: <a class="struct" href="../struct.Path.html" title="struct syntax::ast::Path">Path</a>) -> <a class="enum" href="../enum.Pat.html" title="enum syntax::ast::Pat">Pat</a></h4></section><section id="method.rest_pat" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#494-496">Source</a><h4 class="code-header">pub fn <a href="#method.rest_pat" class="fn">rest_pat</a>(&self) -> <a class="struct" href="../struct.RestPat.html" title="struct syntax::ast::RestPat">RestPat</a></h4></section><section id="method.or_pat" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#498-513">Source</a><h4 class="code-header">pub fn <a href="#method.or_pat" class="fn">or_pat</a>(
|
|
&self,
|
|
pats: impl <a class="trait" href="https://doc.rust-lang.org/1.93.0/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = <a class="enum" href="../enum.Pat.html" title="enum syntax::ast::Pat">Pat</a>>,
|
|
leading_pipe: <a class="primitive" href="https://doc.rust-lang.org/1.93.0/std/primitive.bool.html">bool</a>,
|
|
) -> <a class="struct" href="../struct.OrPat.html" title="struct syntax::ast::OrPat">OrPat</a></h4></section><section id="method.box_pat" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#515-525">Source</a><h4 class="code-header">pub fn <a href="#method.box_pat" class="fn">box_pat</a>(&self, pat: <a class="enum" href="../enum.Pat.html" title="enum syntax::ast::Pat">Pat</a>) -> <a class="struct" href="../struct.BoxPat.html" title="struct syntax::ast::BoxPat">BoxPat</a></h4></section><section id="method.paren_pat" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#527-537">Source</a><h4 class="code-header">pub fn <a href="#method.paren_pat" class="fn">paren_pat</a>(&self, pat: <a class="enum" href="../enum.Pat.html" title="enum syntax::ast::Pat">Pat</a>) -> <a class="struct" href="../struct.ParenPat.html" title="struct syntax::ast::ParenPat">ParenPat</a></h4></section><section id="method.range_pat" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#539-554">Source</a><h4 class="code-header">pub fn <a href="#method.range_pat" class="fn">range_pat</a>(&self, start: <a class="enum" href="https://doc.rust-lang.org/1.93.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../enum.Pat.html" title="enum syntax::ast::Pat">Pat</a>>, end: <a class="enum" href="https://doc.rust-lang.org/1.93.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../enum.Pat.html" title="enum syntax::ast::Pat">Pat</a>>) -> <a class="struct" href="../struct.RangePat.html" title="struct syntax::ast::RangePat">RangePat</a></h4></section><section id="method.ref_pat" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#556-566">Source</a><h4 class="code-header">pub fn <a href="#method.ref_pat" class="fn">ref_pat</a>(&self, pat: <a class="enum" href="../enum.Pat.html" title="enum syntax::ast::Pat">Pat</a>) -> <a class="struct" href="../struct.RefPat.html" title="struct syntax::ast::RefPat">RefPat</a></h4></section><section id="method.block_expr" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#568-599">Source</a><h4 class="code-header">pub fn <a href="#method.block_expr" class="fn">block_expr</a>(
|
|
&self,
|
|
statements: impl <a class="trait" href="https://doc.rust-lang.org/1.93.0/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = <a class="enum" href="../enum.Stmt.html" title="enum syntax::ast::Stmt">Stmt</a>>,
|
|
tail_expr: <a class="enum" href="https://doc.rust-lang.org/1.93.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../enum.Expr.html" title="enum syntax::ast::Expr">Expr</a>>,
|
|
) -> <a class="struct" href="../struct.BlockExpr.html" title="struct syntax::ast::BlockExpr">BlockExpr</a></h4></section><section id="method.expr_empty_block" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#601-603">Source</a><h4 class="code-header">pub fn <a href="#method.expr_empty_block" class="fn">expr_empty_block</a>(&self) -> <a class="struct" href="../struct.BlockExpr.html" title="struct syntax::ast::BlockExpr">BlockExpr</a></h4></section><section id="method.expr_paren" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#605-615">Source</a><h4 class="code-header">pub fn <a href="#method.expr_paren" class="fn">expr_paren</a>(&self, expr: <a class="enum" href="../enum.Expr.html" title="enum syntax::ast::Expr">Expr</a>) -> <a class="struct" href="../struct.ParenExpr.html" title="struct syntax::ast::ParenExpr">ParenExpr</a></h4></section><section id="method.expr_tuple" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#617-628">Source</a><h4 class="code-header">pub fn <a href="#method.expr_tuple" class="fn">expr_tuple</a>(&self, fields: impl <a class="trait" href="https://doc.rust-lang.org/1.93.0/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = <a class="enum" href="../enum.Expr.html" title="enum syntax::ast::Expr">Expr</a>>) -> <a class="struct" href="../struct.TupleExpr.html" title="struct syntax::ast::TupleExpr">TupleExpr</a></h4></section><section id="method.expr_assignment" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#630-641">Source</a><h4 class="code-header">pub fn <a href="#method.expr_assignment" class="fn">expr_assignment</a>(&self, lhs: <a class="enum" href="../enum.Expr.html" title="enum syntax::ast::Expr">Expr</a>, rhs: <a class="enum" href="../enum.Expr.html" title="enum syntax::ast::Expr">Expr</a>) -> <a class="struct" href="../struct.BinExpr.html" title="struct syntax::ast::BinExpr">BinExpr</a></h4></section><section id="method.expr_bin" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#643-658">Source</a><h4 class="code-header">pub fn <a href="#method.expr_bin" class="fn">expr_bin</a>(&self, lhs: <a class="enum" href="../enum.Expr.html" title="enum syntax::ast::Expr">Expr</a>, op: <a class="enum" href="../enum.BinaryOp.html" title="enum syntax::ast::BinaryOp">BinaryOp</a>, rhs: <a class="enum" href="../enum.Expr.html" title="enum syntax::ast::Expr">Expr</a>) -> <a class="struct" href="../struct.BinExpr.html" title="struct syntax::ast::BinExpr">BinExpr</a></h4></section><section id="method.expr_literal" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#660-662">Source</a><h4 class="code-header">pub fn <a href="#method.expr_literal" class="fn">expr_literal</a>(&self, text: &<a class="primitive" href="https://doc.rust-lang.org/1.93.0/std/primitive.str.html">str</a>) -> <a class="struct" href="../struct.Literal.html" title="struct syntax::ast::Literal">Literal</a></h4></section><section id="method.expr_path" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#664-676">Source</a><h4 class="code-header">pub fn <a href="#method.expr_path" class="fn">expr_path</a>(&self, path: <a class="struct" href="../struct.Path.html" title="struct syntax::ast::Path">Path</a>) -> <a class="enum" href="../enum.Expr.html" title="enum syntax::ast::Expr">Expr</a></h4></section><section id="method.expr_prefix" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#678-688">Source</a><h4 class="code-header">pub fn <a href="#method.expr_prefix" class="fn">expr_prefix</a>(&self, op: <a class="enum" href="../../enum.SyntaxKind.html" title="enum syntax::SyntaxKind">SyntaxKind</a>, expr: <a class="enum" href="../enum.Expr.html" title="enum syntax::ast::Expr">Expr</a>) -> <a class="struct" href="../struct.PrefixExpr.html" title="struct syntax::ast::PrefixExpr">PrefixExpr</a></h4></section><section id="method.expr_call" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#690-701">Source</a><h4 class="code-header">pub fn <a href="#method.expr_call" class="fn">expr_call</a>(&self, expr: <a class="enum" href="../enum.Expr.html" title="enum syntax::ast::Expr">Expr</a>, arg_list: <a class="struct" href="../struct.ArgList.html" title="struct syntax::ast::ArgList">ArgList</a>) -> <a class="struct" href="../struct.CallExpr.html" title="struct syntax::ast::CallExpr">CallExpr</a></h4></section><section id="method.expr_method_call" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#703-721">Source</a><h4 class="code-header">pub fn <a href="#method.expr_method_call" class="fn">expr_method_call</a>(
|
|
&self,
|
|
receiver: <a class="enum" href="../enum.Expr.html" title="enum syntax::ast::Expr">Expr</a>,
|
|
method: <a class="struct" href="../struct.NameRef.html" title="struct syntax::ast::NameRef">NameRef</a>,
|
|
arg_list: <a class="struct" href="../struct.ArgList.html" title="struct syntax::ast::ArgList">ArgList</a>,
|
|
) -> <a class="struct" href="../struct.MethodCallExpr.html" title="struct syntax::ast::MethodCallExpr">MethodCallExpr</a></h4></section><section id="method.arg_list" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#723-734">Source</a><h4 class="code-header">pub fn <a href="#method.arg_list" class="fn">arg_list</a>(&self, args: impl <a class="trait" href="https://doc.rust-lang.org/1.93.0/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = <a class="enum" href="../enum.Expr.html" title="enum syntax::ast::Expr">Expr</a>>) -> <a class="struct" href="../struct.ArgList.html" title="struct syntax::ast::ArgList">ArgList</a></h4></section><section id="method.expr_ref" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#736-749">Source</a><h4 class="code-header">pub fn <a href="#method.expr_ref" class="fn">expr_ref</a>(&self, expr: <a class="enum" href="../enum.Expr.html" title="enum syntax::ast::Expr">Expr</a>, exclusive: <a class="primitive" href="https://doc.rust-lang.org/1.93.0/std/primitive.bool.html">bool</a>) -> <a class="enum" href="../enum.Expr.html" title="enum syntax::ast::Expr">Expr</a></h4></section><section id="method.expr_raw_ref" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#751-765">Source</a><h4 class="code-header">pub fn <a href="#method.expr_raw_ref" class="fn">expr_raw_ref</a>(&self, expr: <a class="enum" href="../enum.Expr.html" title="enum syntax::ast::Expr">Expr</a>, exclusive: <a class="primitive" href="https://doc.rust-lang.org/1.93.0/std/primitive.bool.html">bool</a>) -> <a class="enum" href="../enum.Expr.html" title="enum syntax::ast::Expr">Expr</a></h4></section><section id="method.expr_closure" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#767-786">Source</a><h4 class="code-header">pub fn <a href="#method.expr_closure" class="fn">expr_closure</a>(
|
|
&self,
|
|
pats: impl <a class="trait" href="https://doc.rust-lang.org/1.93.0/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = <a class="struct" href="../struct.Param.html" title="struct syntax::ast::Param">Param</a>>,
|
|
expr: <a class="enum" href="../enum.Expr.html" title="enum syntax::ast::Expr">Expr</a>,
|
|
) -> <a class="struct" href="../struct.ClosureExpr.html" title="struct syntax::ast::ClosureExpr">ClosureExpr</a></h4></section><section id="method.expr_return" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#788-802">Source</a><h4 class="code-header">pub fn <a href="#method.expr_return" class="fn">expr_return</a>(&self, expr: <a class="enum" href="https://doc.rust-lang.org/1.93.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../enum.Expr.html" title="enum syntax::ast::Expr">Expr</a>>) -> <a class="struct" href="../struct.ReturnExpr.html" title="struct syntax::ast::ReturnExpr">ReturnExpr</a></h4></section><section id="method.expr_underscore" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#804-814">Source</a><h4 class="code-header">pub fn <a href="#method.expr_underscore" class="fn">expr_underscore</a>(&self) -> <a class="struct" href="../struct.UnderscoreExpr.html" title="struct syntax::ast::UnderscoreExpr">UnderscoreExpr</a></h4></section><section id="method.expr_if" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#816-843">Source</a><h4 class="code-header">pub fn <a href="#method.expr_if" class="fn">expr_if</a>(
|
|
&self,
|
|
condition: <a class="enum" href="../enum.Expr.html" title="enum syntax::ast::Expr">Expr</a>,
|
|
then_branch: <a class="struct" href="../struct.BlockExpr.html" title="struct syntax::ast::BlockExpr">BlockExpr</a>,
|
|
else_branch: <a class="enum" href="https://doc.rust-lang.org/1.93.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../enum.ElseBranch.html" title="enum syntax::ast::ElseBranch">ElseBranch</a>>,
|
|
) -> <a class="struct" href="../struct.IfExpr.html" title="struct syntax::ast::IfExpr">IfExpr</a></h4></section><section id="method.expr_loop" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#845-857">Source</a><h4 class="code-header">pub fn <a href="#method.expr_loop" class="fn">expr_loop</a>(&self, body: <a class="struct" href="../struct.BlockExpr.html" title="struct syntax::ast::BlockExpr">BlockExpr</a>) -> <a class="struct" href="../struct.LoopExpr.html" title="struct syntax::ast::LoopExpr">LoopExpr</a></h4></section><section id="method.expr_while_loop" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#859-870">Source</a><h4 class="code-header">pub fn <a href="#method.expr_while_loop" class="fn">expr_while_loop</a>(&self, condition: <a class="enum" href="../enum.Expr.html" title="enum syntax::ast::Expr">Expr</a>, body: <a class="struct" href="../struct.BlockExpr.html" title="struct syntax::ast::BlockExpr">BlockExpr</a>) -> <a class="struct" href="../struct.WhileExpr.html" title="struct syntax::ast::WhileExpr">WhileExpr</a></h4></section><section id="method.expr_for_loop" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#872-890">Source</a><h4 class="code-header">pub fn <a href="#method.expr_for_loop" class="fn">expr_for_loop</a>(
|
|
&self,
|
|
pat: <a class="enum" href="../enum.Pat.html" title="enum syntax::ast::Pat">Pat</a>,
|
|
iterable: <a class="enum" href="../enum.Expr.html" title="enum syntax::ast::Expr">Expr</a>,
|
|
body: <a class="struct" href="../struct.BlockExpr.html" title="struct syntax::ast::BlockExpr">BlockExpr</a>,
|
|
) -> <a class="struct" href="../struct.ForExpr.html" title="struct syntax::ast::ForExpr">ForExpr</a></h4></section><section id="method.expr_let" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#892-903">Source</a><h4 class="code-header">pub fn <a href="#method.expr_let" class="fn">expr_let</a>(&self, pattern: <a class="enum" href="../enum.Pat.html" title="enum syntax::ast::Pat">Pat</a>, expr: <a class="enum" href="../enum.Expr.html" title="enum syntax::ast::Expr">Expr</a>) -> <a class="struct" href="../struct.LetExpr.html" title="struct syntax::ast::LetExpr">LetExpr</a></h4></section><section id="method.expr_stmt" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#905-915">Source</a><h4 class="code-header">pub fn <a href="#method.expr_stmt" class="fn">expr_stmt</a>(&self, expr: <a class="enum" href="../enum.Expr.html" title="enum syntax::ast::Expr">Expr</a>) -> <a class="struct" href="../struct.ExprStmt.html" title="struct syntax::ast::ExprStmt">ExprStmt</a></h4></section><section id="method.expr_match" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#917-931">Source</a><h4 class="code-header">pub fn <a href="#method.expr_match" class="fn">expr_match</a>(&self, expr: <a class="enum" href="../enum.Expr.html" title="enum syntax::ast::Expr">Expr</a>, match_arm_list: <a class="struct" href="../struct.MatchArmList.html" title="struct syntax::ast::MatchArmList">MatchArmList</a>) -> <a class="struct" href="../struct.MatchExpr.html" title="struct syntax::ast::MatchExpr">MatchExpr</a></h4></section><section id="method.expr_macro" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#933-946">Source</a><h4 class="code-header">pub fn <a href="#method.expr_macro" class="fn">expr_macro</a>(&self, path: <a class="struct" href="../struct.Path.html" title="struct syntax::ast::Path">Path</a>, tt: <a class="struct" href="../struct.TokenTree.html" title="struct syntax::ast::TokenTree">TokenTree</a>) -> <a class="struct" href="../struct.MacroExpr.html" title="struct syntax::ast::MacroExpr">MacroExpr</a></h4></section><section id="method.match_arm" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#948-967">Source</a><h4 class="code-header">pub fn <a href="#method.match_arm" class="fn">match_arm</a>(
|
|
&self,
|
|
pat: <a class="enum" href="../enum.Pat.html" title="enum syntax::ast::Pat">Pat</a>,
|
|
guard: <a class="enum" href="https://doc.rust-lang.org/1.93.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../struct.MatchGuard.html" title="struct syntax::ast::MatchGuard">MatchGuard</a>>,
|
|
expr: <a class="enum" href="../enum.Expr.html" title="enum syntax::ast::Expr">Expr</a>,
|
|
) -> <a class="struct" href="../struct.MatchArm.html" title="struct syntax::ast::MatchArm">MatchArm</a></h4></section><section id="method.match_guard" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#969-979">Source</a><h4 class="code-header">pub fn <a href="#method.match_guard" class="fn">match_guard</a>(&self, condition: <a class="enum" href="../enum.Expr.html" title="enum syntax::ast::Expr">Expr</a>) -> <a class="struct" href="../struct.MatchGuard.html" title="struct syntax::ast::MatchGuard">MatchGuard</a></h4></section><section id="method.match_arm_list" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#981-995">Source</a><h4 class="code-header">pub fn <a href="#method.match_arm_list" class="fn">match_arm_list</a>(
|
|
&self,
|
|
match_arms: impl <a class="trait" href="https://doc.rust-lang.org/1.93.0/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = <a class="struct" href="../struct.MatchArm.html" title="struct syntax::ast::MatchArm">MatchArm</a>>,
|
|
) -> <a class="struct" href="../struct.MatchArmList.html" title="struct syntax::ast::MatchArmList">MatchArmList</a></h4></section><section id="method.let_stmt" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#997-1020">Source</a><h4 class="code-header">pub fn <a href="#method.let_stmt" class="fn">let_stmt</a>(
|
|
&self,
|
|
pattern: <a class="enum" href="../enum.Pat.html" title="enum syntax::ast::Pat">Pat</a>,
|
|
ty: <a class="enum" href="https://doc.rust-lang.org/1.93.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../enum.Type.html" title="enum syntax::ast::Type">Type</a>>,
|
|
initializer: <a class="enum" href="https://doc.rust-lang.org/1.93.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../enum.Expr.html" title="enum syntax::ast::Expr">Expr</a>>,
|
|
) -> <a class="struct" href="../struct.LetStmt.html" title="struct syntax::ast::LetStmt">LetStmt</a></h4></section><section id="method.let_else_stmt" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#1022-1052">Source</a><h4 class="code-header">pub fn <a href="#method.let_else_stmt" class="fn">let_else_stmt</a>(
|
|
&self,
|
|
pattern: <a class="enum" href="../enum.Pat.html" title="enum syntax::ast::Pat">Pat</a>,
|
|
ty: <a class="enum" href="https://doc.rust-lang.org/1.93.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../enum.Type.html" title="enum syntax::ast::Type">Type</a>>,
|
|
initializer: <a class="enum" href="../enum.Expr.html" title="enum syntax::ast::Expr">Expr</a>,
|
|
diverging: <a class="struct" href="../struct.BlockExpr.html" title="struct syntax::ast::BlockExpr">BlockExpr</a>,
|
|
) -> <a class="struct" href="../struct.LetStmt.html" title="struct syntax::ast::LetStmt">LetStmt</a></h4></section><section id="method.type_arg" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#1054-1064">Source</a><h4 class="code-header">pub fn <a href="#method.type_arg" class="fn">type_arg</a>(&self, ty: <a class="enum" href="../enum.Type.html" title="enum syntax::ast::Type">Type</a>) -> <a class="struct" href="../struct.TypeArg.html" title="struct syntax::ast::TypeArg">TypeArg</a></h4></section><section id="method.lifetime_arg" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#1066-1076">Source</a><h4 class="code-header">pub fn <a href="#method.lifetime_arg" class="fn">lifetime_arg</a>(&self, lifetime: <a class="struct" href="../struct.Lifetime.html" title="struct syntax::ast::Lifetime">Lifetime</a>) -> <a class="struct" href="../struct.LifetimeArg.html" title="struct syntax::ast::LifetimeArg">LifetimeArg</a></h4></section><section id="method.item_const" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#1078-1107">Source</a><h4 class="code-header">pub fn <a href="#method.item_const" class="fn">item_const</a>(
|
|
&self,
|
|
attrs: impl <a class="trait" href="https://doc.rust-lang.org/1.93.0/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = <a class="struct" href="../struct.Attr.html" title="struct syntax::ast::Attr">Attr</a>>,
|
|
visibility: <a class="enum" href="https://doc.rust-lang.org/1.93.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../struct.Visibility.html" title="struct syntax::ast::Visibility">Visibility</a>>,
|
|
name: <a class="struct" href="../struct.Name.html" title="struct syntax::ast::Name">Name</a>,
|
|
ty: <a class="enum" href="../enum.Type.html" title="enum syntax::ast::Type">Type</a>,
|
|
expr: <a class="enum" href="../enum.Expr.html" title="enum syntax::ast::Expr">Expr</a>,
|
|
) -> <a class="struct" href="../struct.Const.html" title="struct syntax::ast::Const">Const</a></h4></section><section id="method.item_static" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#1109-1147">Source</a><h4 class="code-header">pub fn <a href="#method.item_static" class="fn">item_static</a>(
|
|
&self,
|
|
visibility: <a class="enum" href="https://doc.rust-lang.org/1.93.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../struct.Visibility.html" title="struct syntax::ast::Visibility">Visibility</a>>,
|
|
is_unsafe: <a class="primitive" href="https://doc.rust-lang.org/1.93.0/std/primitive.bool.html">bool</a>,
|
|
is_mut: <a class="primitive" href="https://doc.rust-lang.org/1.93.0/std/primitive.bool.html">bool</a>,
|
|
name: <a class="struct" href="../struct.Name.html" title="struct syntax::ast::Name">Name</a>,
|
|
ty: <a class="enum" href="../enum.Type.html" title="enum syntax::ast::Type">Type</a>,
|
|
expr: <a class="enum" href="https://doc.rust-lang.org/1.93.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../enum.Expr.html" title="enum syntax::ast::Expr">Expr</a>>,
|
|
) -> <a class="struct" href="../struct.Static.html" title="struct syntax::ast::Static">Static</a></h4></section><section id="method.param" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#1149-1160">Source</a><h4 class="code-header">pub fn <a href="#method.param" class="fn">param</a>(&self, pat: <a class="enum" href="../enum.Pat.html" title="enum syntax::ast::Pat">Pat</a>, ty: <a class="enum" href="../enum.Type.html" title="enum syntax::ast::Type">Type</a>) -> <a class="struct" href="../struct.Param.html" title="struct syntax::ast::Param">Param</a></h4></section><section id="method.generic_arg_list" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#1162-1181">Source</a><h4 class="code-header">pub fn <a href="#method.generic_arg_list" class="fn">generic_arg_list</a>(
|
|
&self,
|
|
generic_args: impl <a class="trait" href="https://doc.rust-lang.org/1.93.0/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = <a class="enum" href="../enum.GenericArg.html" title="enum syntax::ast::GenericArg">GenericArg</a>>,
|
|
is_turbo: <a class="primitive" href="https://doc.rust-lang.org/1.93.0/std/primitive.bool.html">bool</a>,
|
|
) -> <a class="struct" href="../struct.GenericArgList.html" title="struct syntax::ast::GenericArgList">GenericArgList</a></h4></section><section id="method.record_expr" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#1183-1199">Source</a><h4 class="code-header">pub fn <a href="#method.record_expr" class="fn">record_expr</a>(&self, path: <a class="struct" href="../struct.Path.html" title="struct syntax::ast::Path">Path</a>, fields: <a class="struct" href="../struct.RecordExprFieldList.html" title="struct syntax::ast::RecordExprFieldList">RecordExprFieldList</a>) -> <a class="struct" href="../struct.RecordExpr.html" title="struct syntax::ast::RecordExpr">RecordExpr</a></h4></section><section id="method.record_expr_field" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#1201-1220">Source</a><h4 class="code-header">pub fn <a href="#method.record_expr_field" class="fn">record_expr_field</a>(
|
|
&self,
|
|
name: <a class="struct" href="../struct.NameRef.html" title="struct syntax::ast::NameRef">NameRef</a>,
|
|
expr: <a class="enum" href="https://doc.rust-lang.org/1.93.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../enum.Expr.html" title="enum syntax::ast::Expr">Expr</a>>,
|
|
) -> <a class="struct" href="../struct.RecordExprField.html" title="struct syntax::ast::RecordExprField">RecordExprField</a></h4></section><section id="method.record_field_list" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#1222-1238">Source</a><h4 class="code-header">pub fn <a href="#method.record_field_list" class="fn">record_field_list</a>(
|
|
&self,
|
|
fields: impl <a class="trait" href="https://doc.rust-lang.org/1.93.0/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = <a class="struct" href="../struct.RecordField.html" title="struct syntax::ast::RecordField">RecordField</a>>,
|
|
) -> <a class="struct" href="../struct.RecordFieldList.html" title="struct syntax::ast::RecordFieldList">RecordFieldList</a></h4></section><section id="method.record_field" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#1240-1265">Source</a><h4 class="code-header">pub fn <a href="#method.record_field" class="fn">record_field</a>(
|
|
&self,
|
|
visibility: <a class="enum" href="https://doc.rust-lang.org/1.93.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../struct.Visibility.html" title="struct syntax::ast::Visibility">Visibility</a>>,
|
|
name: <a class="struct" href="../struct.Name.html" title="struct syntax::ast::Name">Name</a>,
|
|
ty: <a class="enum" href="../enum.Type.html" title="enum syntax::ast::Type">Type</a>,
|
|
) -> <a class="struct" href="../struct.RecordField.html" title="struct syntax::ast::RecordField">RecordField</a></h4></section><section id="method.tuple_field_list" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#1267-1283">Source</a><h4 class="code-header">pub fn <a href="#method.tuple_field_list" class="fn">tuple_field_list</a>(
|
|
&self,
|
|
fields: impl <a class="trait" href="https://doc.rust-lang.org/1.93.0/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = <a class="struct" href="../struct.TupleField.html" title="struct syntax::ast::TupleField">TupleField</a>>,
|
|
) -> <a class="struct" href="../struct.TupleFieldList.html" title="struct syntax::ast::TupleFieldList">TupleFieldList</a></h4></section><section id="method.tuple_field" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#1285-1307">Source</a><h4 class="code-header">pub fn <a href="#method.tuple_field" class="fn">tuple_field</a>(
|
|
&self,
|
|
visibility: <a class="enum" href="https://doc.rust-lang.org/1.93.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../struct.Visibility.html" title="struct syntax::ast::Visibility">Visibility</a>>,
|
|
ty: <a class="enum" href="../enum.Type.html" title="enum syntax::ast::Type">Type</a>,
|
|
) -> <a class="struct" href="../struct.TupleField.html" title="struct syntax::ast::TupleField">TupleField</a></h4></section><section id="method.item_enum" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#1309-1362">Source</a><h4 class="code-header">pub fn <a href="#method.item_enum" class="fn">item_enum</a>(
|
|
&self,
|
|
attrs: impl <a class="trait" href="https://doc.rust-lang.org/1.93.0/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = <a class="struct" href="../struct.Attr.html" title="struct syntax::ast::Attr">Attr</a>>,
|
|
visibility: <a class="enum" href="https://doc.rust-lang.org/1.93.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../struct.Visibility.html" title="struct syntax::ast::Visibility">Visibility</a>>,
|
|
name: <a class="struct" href="../struct.Name.html" title="struct syntax::ast::Name">Name</a>,
|
|
generic_param_list: <a class="enum" href="https://doc.rust-lang.org/1.93.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../struct.GenericParamList.html" title="struct syntax::ast::GenericParamList">GenericParamList</a>>,
|
|
where_clause: <a class="enum" href="https://doc.rust-lang.org/1.93.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../struct.WhereClause.html" title="struct syntax::ast::WhereClause">WhereClause</a>>,
|
|
variant_list: <a class="struct" href="../struct.VariantList.html" title="struct syntax::ast::VariantList">VariantList</a>,
|
|
) -> <a class="struct" href="../struct.Enum.html" title="struct syntax::ast::Enum">Enum</a></h4></section><section id="method.variant_list" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#1364-1380">Source</a><h4 class="code-header">pub fn <a href="#method.variant_list" class="fn">variant_list</a>(
|
|
&self,
|
|
variants: impl <a class="trait" href="https://doc.rust-lang.org/1.93.0/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = <a class="struct" href="../struct.Variant.html" title="struct syntax::ast::Variant">Variant</a>>,
|
|
) -> <a class="struct" href="../struct.VariantList.html" title="struct syntax::ast::VariantList">VariantList</a></h4></section><section id="method.variant" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#1382-1424">Source</a><h4 class="code-header">pub fn <a href="#method.variant" class="fn">variant</a>(
|
|
&self,
|
|
visibility: <a class="enum" href="https://doc.rust-lang.org/1.93.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../struct.Visibility.html" title="struct syntax::ast::Visibility">Visibility</a>>,
|
|
name: <a class="struct" href="../struct.Name.html" title="struct syntax::ast::Name">Name</a>,
|
|
field_list: <a class="enum" href="https://doc.rust-lang.org/1.93.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../enum.FieldList.html" title="enum syntax::ast::FieldList">FieldList</a>>,
|
|
discriminant: <a class="enum" href="https://doc.rust-lang.org/1.93.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../enum.Expr.html" title="enum syntax::ast::Expr">Expr</a>>,
|
|
) -> <a class="struct" href="../struct.Variant.html" title="struct syntax::ast::Variant">Variant</a></h4></section><section id="method.fn_" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#1426-1491">Source</a><h4 class="code-header">pub fn <a href="#method.fn_" class="fn">fn_</a>(
|
|
&self,
|
|
attrs: impl <a class="trait" href="https://doc.rust-lang.org/1.93.0/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = <a class="struct" href="../struct.Attr.html" title="struct syntax::ast::Attr">Attr</a>>,
|
|
visibility: <a class="enum" href="https://doc.rust-lang.org/1.93.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../struct.Visibility.html" title="struct syntax::ast::Visibility">Visibility</a>>,
|
|
fn_name: <a class="struct" href="../struct.Name.html" title="struct syntax::ast::Name">Name</a>,
|
|
type_params: <a class="enum" href="https://doc.rust-lang.org/1.93.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../struct.GenericParamList.html" title="struct syntax::ast::GenericParamList">GenericParamList</a>>,
|
|
where_clause: <a class="enum" href="https://doc.rust-lang.org/1.93.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../struct.WhereClause.html" title="struct syntax::ast::WhereClause">WhereClause</a>>,
|
|
params: <a class="struct" href="../struct.ParamList.html" title="struct syntax::ast::ParamList">ParamList</a>,
|
|
body: <a class="struct" href="../struct.BlockExpr.html" title="struct syntax::ast::BlockExpr">BlockExpr</a>,
|
|
ret_type: <a class="enum" href="https://doc.rust-lang.org/1.93.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../struct.RetType.html" title="struct syntax::ast::RetType">RetType</a>>,
|
|
is_async: <a class="primitive" href="https://doc.rust-lang.org/1.93.0/std/primitive.bool.html">bool</a>,
|
|
is_const: <a class="primitive" href="https://doc.rust-lang.org/1.93.0/std/primitive.bool.html">bool</a>,
|
|
is_unsafe: <a class="primitive" href="https://doc.rust-lang.org/1.93.0/std/primitive.bool.html">bool</a>,
|
|
is_gen: <a class="primitive" href="https://doc.rust-lang.org/1.93.0/std/primitive.bool.html">bool</a>,
|
|
) -> <a class="struct" href="../struct.Fn.html" title="struct syntax::ast::Fn">Fn</a></h4></section><section id="method.assoc_item_list" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#1493-1508">Source</a><h4 class="code-header">pub fn <a href="#method.assoc_item_list" class="fn">assoc_item_list</a>(
|
|
&self,
|
|
items: impl <a class="trait" href="https://doc.rust-lang.org/1.93.0/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = <a class="enum" href="../enum.AssocItem.html" title="enum syntax::ast::AssocItem">AssocItem</a>>,
|
|
) -> <a class="struct" href="../struct.AssocItemList.html" title="struct syntax::ast::AssocItemList">AssocItemList</a></h4></section><section id="method.attr_outer" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#1510-1520">Source</a><h4 class="code-header">pub fn <a href="#method.attr_outer" class="fn">attr_outer</a>(&self, meta: <a class="struct" href="../struct.Meta.html" title="struct syntax::ast::Meta">Meta</a>) -> <a class="struct" href="../struct.Attr.html" title="struct syntax::ast::Attr">Attr</a></h4></section><section id="method.attr_inner" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#1522-1532">Source</a><h4 class="code-header">pub fn <a href="#method.attr_inner" class="fn">attr_inner</a>(&self, meta: <a class="struct" href="../struct.Meta.html" title="struct syntax::ast::Meta">Meta</a>) -> <a class="struct" href="../struct.Attr.html" title="struct syntax::ast::Attr">Attr</a></h4></section><section id="method.meta_token_tree" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#1534-1545">Source</a><h4 class="code-header">pub fn <a href="#method.meta_token_tree" class="fn">meta_token_tree</a>(&self, path: <a class="struct" href="../struct.Path.html" title="struct syntax::ast::Path">Path</a>, tt: <a class="struct" href="../struct.TokenTree.html" title="struct syntax::ast::TokenTree">TokenTree</a>) -> <a class="struct" href="../struct.Meta.html" title="struct syntax::ast::Meta">Meta</a></h4></section><section id="method.token_tree" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#1547-1568">Source</a><h4 class="code-header">pub fn <a href="#method.token_tree" class="fn">token_tree</a>(
|
|
&self,
|
|
delimiter: <a class="enum" href="../../enum.SyntaxKind.html" title="enum syntax::SyntaxKind">SyntaxKind</a>,
|
|
tt: impl <a class="trait" href="https://doc.rust-lang.org/1.93.0/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = <a class="enum" href="../../enum.NodeOrToken.html" title="enum syntax::NodeOrToken">NodeOrToken</a><<a class="struct" href="../struct.TokenTree.html" title="struct syntax::ast::TokenTree">TokenTree</a>, <a class="type" href="../../type.SyntaxToken.html" title="type syntax::SyntaxToken">SyntaxToken</a>>>,
|
|
) -> <a class="struct" href="../struct.TokenTree.html" title="struct syntax::ast::TokenTree">TokenTree</a></h4></section><section id="method.token" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#1570-1572">Source</a><h4 class="code-header">pub fn <a href="#method.token" class="fn">token</a>(&self, kind: <a class="enum" href="../../enum.SyntaxKind.html" title="enum syntax::SyntaxKind">SyntaxKind</a>) -> <a class="type" href="../../type.SyntaxToken.html" title="type syntax::SyntaxToken">SyntaxToken</a></h4></section><section id="method.whitespace" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#1574-1576">Source</a><h4 class="code-header">pub fn <a href="#method.whitespace" class="fn">whitespace</a>(&self, text: &<a class="primitive" href="https://doc.rust-lang.org/1.93.0/std/primitive.str.html">str</a>) -> <a class="type" href="../../type.SyntaxToken.html" title="type syntax::SyntaxToken">SyntaxToken</a></h4></section><section id="method.ident" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#1578-1580">Source</a><h4 class="code-header">pub fn <a href="#method.ident" class="fn">ident</a>(&self, text: &<a class="primitive" href="https://doc.rust-lang.org/1.93.0/std/primitive.str.html">str</a>) -> <a class="type" href="../../type.SyntaxToken.html" title="type syntax::SyntaxToken">SyntaxToken</a></h4></section><section id="method.mut_self_param" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#1582-1591">Source</a><h4 class="code-header">pub fn <a href="#method.mut_self_param" class="fn">mut_self_param</a>(&self) -> <a class="struct" href="../struct.SelfParam.html" title="struct syntax::ast::SelfParam">SelfParam</a></h4></section><section id="method.ret_type" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#1593-1602">Source</a><h4 class="code-header">pub fn <a href="#method.ret_type" class="fn">ret_type</a>(&self, ty: <a class="enum" href="../enum.Type.html" title="enum syntax::ast::Type">Type</a>) -> <a class="struct" href="../struct.RetType.html" title="struct syntax::ast::RetType">RetType</a></h4></section><section id="method.ty_ref" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#1604-1618">Source</a><h4 class="code-header">pub fn <a href="#method.ty_ref" class="fn">ty_ref</a>(&self, ty: <a class="enum" href="../enum.Type.html" title="enum syntax::ast::Type">Type</a>, is_mut: <a class="primitive" href="https://doc.rust-lang.org/1.93.0/std/primitive.bool.html">bool</a>) -> <a class="enum" href="../enum.Type.html" title="enum syntax::ast::Type">Type</a></h4></section></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-SyntaxFactory-1" class="impl"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#1622-1649">Source</a><a href="#impl-SyntaxFactory-1" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.SyntaxFactory.html" title="struct syntax::ast::syntax_factory::SyntaxFactory">SyntaxFactory</a></h3></section></summary><div class="impl-items"><section id="method.ident_path" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#1623-1625">Source</a><h4 class="code-header">pub fn <a href="#method.ident_path" class="fn">ident_path</a>(&self, ident: &<a class="primitive" href="https://doc.rust-lang.org/1.93.0/std/primitive.str.html">str</a>) -> <a class="struct" href="../struct.Path.html" title="struct syntax::ast::Path">Path</a></h4></section><section id="method.expr_unit" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#1627-1629">Source</a><h4 class="code-header">pub fn <a href="#method.expr_unit" class="fn">expr_unit</a>(&self) -> <a class="enum" href="../enum.Expr.html" title="enum syntax::ast::Expr">Expr</a></h4></section><section id="method.ty_option" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#1631-1638">Source</a><h4 class="code-header">pub fn <a href="#method.ty_option" class="fn">ty_option</a>(&self, t: <a class="enum" href="../enum.Type.html" title="enum syntax::ast::Type">Type</a>) -> <a class="struct" href="../struct.PathType.html" title="struct syntax::ast::PathType">PathType</a></h4></section><section id="method.ty_result" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory/constructors.rs.html#1640-1648">Source</a><h4 class="code-header">pub fn <a href="#method.ty_result" class="fn">ty_result</a>(&self, t: <a class="enum" href="../enum.Type.html" title="enum syntax::ast::Type">Type</a>, e: <a class="enum" href="../enum.Type.html" title="enum syntax::ast::Type">Type</a>) -> <a class="struct" href="../struct.PathType.html" title="struct syntax::ast::PathType">PathType</a></h4></section></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-SyntaxFactory-2" class="impl"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory.rs.html#20-44">Source</a><a href="#impl-SyntaxFactory-2" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.SyntaxFactory.html" title="struct syntax::ast::syntax_factory::SyntaxFactory">SyntaxFactory</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.with_mappings" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory.rs.html#22-24">Source</a><h4 class="code-header">pub fn <a href="#method.with_mappings" class="fn">with_mappings</a>() -> Self</h4></section></summary><div class="docblock"><p>Creates a new <a href="struct.SyntaxFactory.html" title="struct syntax::ast::syntax_factory::SyntaxFactory"><code>SyntaxFactory</code></a>, generating mappings between input nodes and generated nodes.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="method.without_mappings" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory.rs.html#27-29">Source</a><h4 class="code-header">pub fn <a href="#method.without_mappings" class="fn">without_mappings</a>() -> Self</h4></section></summary><div class="docblock"><p>Creates a <a href="struct.SyntaxFactory.html" title="struct syntax::ast::syntax_factory::SyntaxFactory"><code>SyntaxFactory</code></a> without generating mappings.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="method.finish_with_mappings" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory.rs.html#32-34">Source</a><h4 class="code-header">pub fn <a href="#method.finish_with_mappings" class="fn">finish_with_mappings</a>(self) -> <a class="struct" href="../../syntax_editor/struct.SyntaxMapping.html" title="struct syntax::syntax_editor::SyntaxMapping">SyntaxMapping</a></h4></section></summary><div class="docblock"><p>Gets all of the tracked syntax mappings, if any.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="method.take" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory.rs.html#37-39">Source</a><h4 class="code-header">pub fn <a href="#method.take" class="fn">take</a>(&self) -> <a class="struct" href="../../syntax_editor/struct.SyntaxMapping.html" title="struct syntax::syntax_editor::SyntaxMapping">SyntaxMapping</a></h4></section></summary><div class="docblock"><p>Take all of the tracked syntax mappings, leaving <code>SyntaxMapping::default()</code> in its place, if any.</p>
|
|
</div></details><section id="method.mappings" class="method"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory.rs.html#41-43">Source</a><h4 class="code-header">pub(crate) fn <a href="#method.mappings" class="fn">mappings</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.93.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://doc.rust-lang.org/1.93.0/core/cell/struct.RefMut.html" title="struct core::cell::RefMut">RefMut</a><'_, <a class="struct" href="../../syntax_editor/struct.SyntaxMapping.html" title="struct syntax::syntax_editor::SyntaxMapping">SyntaxMapping</a>>></h4></section></div></details></div><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Default-for-SyntaxFactory" class="impl"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory.rs.html#46-50">Source</a><a href="#impl-Default-for-SyntaxFactory" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.93.0/core/default/trait.Default.html" title="trait core::default::Default">Default</a> for <a class="struct" href="struct.SyntaxFactory.html" title="struct syntax::ast::syntax_factory::SyntaxFactory">SyntaxFactory</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.default" class="method trait-impl"><a class="src rightside" href="../../../src/syntax/ast/syntax_factory.rs.html#47-49">Source</a><a href="#method.default" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.0/core/default/trait.Default.html#tymethod.default" class="fn">default</a>() -> Self</h4></section></summary><div class='docblock'>Returns the “default value” for a type. <a href="https://doc.rust-lang.org/1.93.0/core/default/trait.Default.html#tymethod.default">Read more</a></div></details></div></details></div><h2 id="synthetic-implementations" class="section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor">§</a></h2><div id="synthetic-implementations-list"><section id="impl-Freeze-for-SyntaxFactory" class="impl"><a href="#impl-Freeze-for-SyntaxFactory" class="anchor">§</a><h3 class="code-header">impl !<a class="trait" href="https://doc.rust-lang.org/1.93.0/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a> for <a class="struct" href="struct.SyntaxFactory.html" title="struct syntax::ast::syntax_factory::SyntaxFactory">SyntaxFactory</a></h3></section><section id="impl-RefUnwindSafe-for-SyntaxFactory" class="impl"><a href="#impl-RefUnwindSafe-for-SyntaxFactory" class="anchor">§</a><h3 class="code-header">impl !<a class="trait" href="https://doc.rust-lang.org/1.93.0/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.SyntaxFactory.html" title="struct syntax::ast::syntax_factory::SyntaxFactory">SyntaxFactory</a></h3></section><section id="impl-Send-for-SyntaxFactory" class="impl"><a href="#impl-Send-for-SyntaxFactory" class="anchor">§</a><h3 class="code-header">impl !<a class="trait" href="https://doc.rust-lang.org/1.93.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.SyntaxFactory.html" title="struct syntax::ast::syntax_factory::SyntaxFactory">SyntaxFactory</a></h3></section><section id="impl-Sync-for-SyntaxFactory" class="impl"><a href="#impl-Sync-for-SyntaxFactory" class="anchor">§</a><h3 class="code-header">impl !<a class="trait" href="https://doc.rust-lang.org/1.93.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.SyntaxFactory.html" title="struct syntax::ast::syntax_factory::SyntaxFactory">SyntaxFactory</a></h3></section><section id="impl-Unpin-for-SyntaxFactory" class="impl"><a href="#impl-Unpin-for-SyntaxFactory" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.93.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.SyntaxFactory.html" title="struct syntax::ast::syntax_factory::SyntaxFactory">SyntaxFactory</a></h3></section><section id="impl-UnwindSafe-for-SyntaxFactory" class="impl"><a href="#impl-UnwindSafe-for-SyntaxFactory" class="anchor">§</a><h3 class="code-header">impl !<a class="trait" href="https://doc.rust-lang.org/1.93.0/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.SyntaxFactory.html" title="struct syntax::ast::syntax_factory::SyntaxFactory">SyntaxFactory</a></h3></section></div><h2 id="blanket-implementations" class="section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor">§</a></h2><div id="blanket-implementations-list"><details class="toggle implementors-toggle"><summary><section id="impl-Any-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.0/src/core/any.rs.html#138">Source</a><a href="#impl-Any-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.93.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T<div class="where">where
|
|
T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/1.93.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.0/src/core/any.rs.html#139">Source</a><a href="#method.type_id" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.0/core/any/trait.Any.html#tymethod.type_id" class="fn">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.93.0/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/1.93.0/core/any/trait.Any.html#tymethod.type_id">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.0/src/core/borrow.rs.html#212">Source</a><a href="#impl-Borrow%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.93.0/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T<div class="where">where
|
|
T: ?<a class="trait" href="https://doc.rust-lang.org/1.93.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.0/src/core/borrow.rs.html#214">Source</a><a href="#method.borrow" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.0/core/borrow/trait.Borrow.html#tymethod.borrow" class="fn">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.93.0/std/primitive.reference.html">&T</a></h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.93.0/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.0/src/core/borrow.rs.html#221">Source</a><a href="#impl-BorrowMut%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.93.0/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T<div class="where">where
|
|
T: ?<a class="trait" href="https://doc.rust-lang.org/1.93.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.0/src/core/borrow.rs.html#222">Source</a><a href="#method.borrow_mut" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fn">borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/1.93.0/std/primitive.reference.html">&mut T</a></h4></section></summary><div class='docblock'>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.93.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-From%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.0/src/core/convert/mod.rs.html#785">Source</a><a href="#impl-From%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.93.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.0/src/core/convert/mod.rs.html#788">Source</a><a href="#method.from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.0/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(t: T) -> T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p>
|
|
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Instrument-for-T" class="impl"><a href="#impl-Instrument-for-T" class="anchor">§</a><h3 class="code-header">impl<T> Instrument for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.instrument" class="method trait-impl"><a href="#method.instrument" class="anchor">§</a><h4 class="code-header">fn <a class="fn">instrument</a>(self, span: Span) -> Instrumented<Self></h4></section></summary><div class='docblock'>Instruments this type with the provided [<code>Span</code>], returning an
|
|
<code>Instrumented</code> wrapper. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.in_current_span" class="method trait-impl"><a href="#method.in_current_span" class="anchor">§</a><h4 class="code-header">fn <a class="fn">in_current_span</a>(self) -> Instrumented<Self></h4></section></summary><div class='docblock'>Instruments this type with the <a href="super::Span::current()">current</a> <a href="crate::Span"><code>Span</code></a>, returning an
|
|
<code>Instrumented</code> wrapper. <a>Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Into%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.0/src/core/convert/mod.rs.html#767-769">Source</a><a href="#impl-Into%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.93.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T<div class="where">where
|
|
U: <a class="trait" href="https://doc.rust-lang.org/1.93.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.0/src/core/convert/mod.rs.html#777">Source</a><a href="#method.into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.0/core/convert/trait.Into.html#tymethod.into" class="fn">into</a>(self) -> U</h4></section></summary><div class="docblock"><p>Calls <code>U::from(self)</code>.</p>
|
|
<p>That is, this conversion is whatever the implementation of
|
|
<code><a href="https://doc.rust-lang.org/1.93.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for U</code> chooses to do.</p>
|
|
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-IntoBox%3Cdyn+Any%3E-for-T" class="impl"><a href="#impl-IntoBox%3Cdyn+Any%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> IntoBox<dyn <a class="trait" href="https://doc.rust-lang.org/1.93.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a>> for T<div class="where">where
|
|
T: <a class="trait" href="https://doc.rust-lang.org/1.93.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into_box" class="method trait-impl"><a href="#method.into_box" class="anchor">§</a><h4 class="code-header">fn <a class="fn">into_box</a>(self) -> <a class="struct" href="https://doc.rust-lang.org/1.93.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.93.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a>></h4></section></summary><div class='docblock'>Convert self into the appropriate boxed form.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-IntoEither-for-T" class="impl"><a class="src rightside" href="https://docs.rs/either/1/src/either/into_either.rs.html#64">Source</a><a href="#impl-IntoEither-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://docs.rs/either/1/either/into_either/trait.IntoEither.html" title="trait either::into_either::IntoEither">IntoEither</a> for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into_either" class="method trait-impl"><a class="src rightside" href="https://docs.rs/either/1/src/either/into_either.rs.html#29">Source</a><a href="#method.into_either" class="anchor">§</a><h4 class="code-header">fn <a href="https://docs.rs/either/1/either/into_either/trait.IntoEither.html#method.into_either" class="fn">into_either</a>(self, into_left: <a class="primitive" href="https://doc.rust-lang.org/1.93.0/std/primitive.bool.html">bool</a>) -> <a class="enum" href="https://docs.rs/either/1/either/enum.Either.html" title="enum either::Either">Either</a><Self, Self></h4></section></summary><div class='docblock'>Converts <code>self</code> into a <a href="https://docs.rs/either/1/either/enum.Either.html#variant.Left" title="variant either::Either::Left"><code>Left</code></a> variant of <a href="https://docs.rs/either/1/either/enum.Either.html" title="enum either::Either"><code>Either<Self, Self></code></a>
|
|
if <code>into_left</code> is <code>true</code>.
|
|
Converts <code>self</code> into a <a href="https://docs.rs/either/1/either/enum.Either.html#variant.Right" title="variant either::Either::Right"><code>Right</code></a> variant of <a href="https://docs.rs/either/1/either/enum.Either.html" title="enum either::Either"><code>Either<Self, Self></code></a>
|
|
otherwise. <a href="https://docs.rs/either/1/either/into_either/trait.IntoEither.html#method.into_either">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.into_either_with" class="method trait-impl"><a class="src rightside" href="https://docs.rs/either/1/src/either/into_either.rs.html#55-57">Source</a><a href="#method.into_either_with" class="anchor">§</a><h4 class="code-header">fn <a href="https://docs.rs/either/1/either/into_either/trait.IntoEither.html#method.into_either_with" class="fn">into_either_with</a><F>(self, into_left: F) -> <a class="enum" href="https://docs.rs/either/1/either/enum.Either.html" title="enum either::Either">Either</a><Self, Self><div class="where">where
|
|
F: <a class="trait" href="https://doc.rust-lang.org/1.93.0/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(&Self) -> <a class="primitive" href="https://doc.rust-lang.org/1.93.0/std/primitive.bool.html">bool</a>,</div></h4></section></summary><div class='docblock'>Converts <code>self</code> into a <a href="https://docs.rs/either/1/either/enum.Either.html#variant.Left" title="variant either::Either::Left"><code>Left</code></a> variant of <a href="https://docs.rs/either/1/either/enum.Either.html" title="enum either::Either"><code>Either<Self, Self></code></a>
|
|
if <code>into_left(&self)</code> returns <code>true</code>.
|
|
Converts <code>self</code> into a <a href="https://docs.rs/either/1/either/enum.Either.html#variant.Right" title="variant either::Either::Right"><code>Right</code></a> variant of <a href="https://docs.rs/either/1/either/enum.Either.html" title="enum either::Either"><code>Either<Self, Self></code></a>
|
|
otherwise. <a href="https://docs.rs/either/1/either/into_either/trait.IntoEither.html#method.into_either_with">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryFrom%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.0/src/core/convert/mod.rs.html#827-829">Source</a><a href="#impl-TryFrom%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.93.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T<div class="where">where
|
|
U: <a class="trait" href="https://doc.rust-lang.org/1.93.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.0/src/core/convert/mod.rs.html#831">Source</a><a href="#associatedtype.Error-1" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.93.0/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/1.93.0/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.0/src/core/convert/mod.rs.html#834">Source</a><a href="#method.try_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.0/core/convert/trait.TryFrom.html#tymethod.try_from" class="fn">try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/1.93.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/1.93.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.93.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.0/src/core/convert/mod.rs.html#811-813">Source</a><a href="#impl-TryInto%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.93.0/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T<div class="where">where
|
|
U: <a class="trait" href="https://doc.rust-lang.org/1.93.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.0/src/core/convert/mod.rs.html#815">Source</a><a href="#associatedtype.Error" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.93.0/core/convert/trait.TryInto.html#associatedtype.Error" class="associatedtype">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/1.93.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.93.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.0/src/core/convert/mod.rs.html#818">Source</a><a href="#method.try_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.0/core/convert/trait.TryInto.html#tymethod.try_into" class="fn">try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.93.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/1.93.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.93.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-WithSubscriber-for-T" class="impl"><a href="#impl-WithSubscriber-for-T" class="anchor">§</a><h3 class="code-header">impl<T> WithSubscriber for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.with_subscriber" class="method trait-impl"><a href="#method.with_subscriber" class="anchor">§</a><h4 class="code-header">fn <a class="fn">with_subscriber</a><S>(self, subscriber: S) -> WithDispatch<Self><div class="where">where
|
|
S: <a class="trait" href="https://doc.rust-lang.org/1.93.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><Dispatch>,</div></h4></section></summary><div class='docblock'>Attaches the provided <a href="super::Subscriber"><code>Subscriber</code></a> to this type, returning a
|
|
[<code>WithDispatch</code>] wrapper. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.with_current_subscriber" class="method trait-impl"><a href="#method.with_current_subscriber" class="anchor">§</a><h4 class="code-header">fn <a class="fn">with_current_subscriber</a>(self) -> WithDispatch<Self></h4></section></summary><div class='docblock'>Attaches the current <a href="crate::dispatcher#setting-the-default-subscriber">default</a> <a href="super::Subscriber"><code>Subscriber</code></a> to this type, returning a
|
|
[<code>WithDispatch</code>] wrapper. <a>Read more</a></div></details></div></details></div></section></div></main></body></html> |