1+ <!DOCTYPE html>
2+ < html lang ="en ">
3+ < head >
4+ < meta charset ="utf-8 ">
5+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
6+ < meta name ="generator " content ="rustdoc ">
7+ < meta name ="description " content ="API documentation for the Rust `AttrBuilder` struct in crate `aster`. ">
8+ < meta name ="keywords " content ="rust, rustlang, rust-lang, AttrBuilder ">
9+
10+ < title > aster::attr::AttrBuilder - Rust</ title >
11+
12+ < link rel ="stylesheet " type ="text/css " href ="../../main.css ">
13+
14+
15+
16+ </ head >
17+ < body class ="rustdoc ">
18+ <!--[if lte IE 8]>
19+ <div class="warning">
20+ This old browser is unsupported and will most likely display funky
21+ things.
22+ </div>
23+ <![endif]-->
24+
25+
26+
27+ < section class ="sidebar ">
28+
29+ < p class ='location '> < a href ='../index.html '> aster</ a > ::< wbr > < a href ='index.html '> attr</ a > </ p > < script > window . sidebarCurrent = { name : 'AttrBuilder' , ty : 'struct' , relpath : '' } ; </ script > < script defer src ="sidebar-items.js "> </ script >
30+ </ section >
31+
32+ < nav class ="sub ">
33+ < form class ="search-form js-only ">
34+ < div class ="search-container ">
35+ < input class ="search-input " name ="search "
36+ autocomplete ="off "
37+ placeholder ="Click or press 'S' to search, '?' for more options... "
38+ type ="search ">
39+ </ div >
40+ </ form >
41+ </ nav >
42+
43+ < section id ='main ' class ="content struct ">
44+ < h1 class ='fqn '> < span class ='in-band '> Struct < a href ='../index.html '> aster</ a > ::< wbr > < a href ='index.html '> attr</ a > ::< wbr > < a class ='struct ' href =''> AttrBuilder</ a > </ span > < span class ='out-of-band '> < span id ='render-detail '>
45+ < a id ="toggle-all-docs " href ="javascript:void(0) " title ="collapse all docs ">
46+ [< span class ='inner '> −</ span > ]
47+ </ a >
48+ </ span > < a id ='src-26 ' class ='srclink ' href ='../../src/aster/attr.rs.html#15-20 ' title ='goto source code '> [src]</ a > </ span > </ h1 >
49+ < pre class ='rust struct '> pub struct AttrBuilder<F = < a class ='struct ' href ='../../aster/invoke/struct.Identity.html ' title ='aster::invoke::Identity '> Identity</ a > > {
50+ // some fields omitted
51+ }</ pre > < h2 id ='methods '> Methods</ h2 > < h3 class ='impl '> < code > impl < a class ='struct ' href ='../../aster/attr/struct.AttrBuilder.html ' title ='aster::attr::AttrBuilder '> AttrBuilder</ a > </ code > </ h3 > < div class ='impl-items '> < h4 id ='method.new ' class ='method '> < code > fn < a href ='#method.new ' class ='fnname '> new</ a > () -> Self</ code > </ h4 >
52+ </ div > < h3 class ='impl '> < code > impl<F> < a class ='struct ' href ='../../aster/attr/struct.AttrBuilder.html ' title ='aster::attr::AttrBuilder '> AttrBuilder</ a > <F> < span class ='where '> where F: < a class ='trait ' href ='../../aster/invoke/trait.Invoke.html ' title ='aster::invoke::Invoke '> Invoke</ a > << a class ='type ' href ='http://doc.rust-lang.org/nightly/syntax/ast/type.Attribute.html ' title ='syntax::ast::Attribute '> Attribute</ a > ></ span > </ code > </ h3 > < div class ='impl-items '> < h4 id ='method.new_with_callback ' class ='method '> < code > fn < a href ='#method.new_with_callback ' class ='fnname '> new_with_callback</ a > (callback: F) -> Self</ code > </ h4 >
53+ < h4 id ='method.span ' class ='method '> < code > fn < a href ='#method.span ' class ='fnname '> span</ a > (self, span: < a class ='struct ' href ='http://doc.rust-lang.org/nightly/syntax/codemap/struct.Span.html ' title ='syntax::codemap::Span '> Span</ a > ) -> Self</ code > </ h4 >
54+ < h4 id ='method.inner ' class ='method '> < code > fn < a href ='#method.inner ' class ='fnname '> inner</ a > (self) -> Self</ code > </ h4 >
55+ < h4 id ='method.build_meta_item ' class ='method '> < code > fn < a href ='#method.build_meta_item ' class ='fnname '> build_meta_item</ a > (self, item: < a class ='struct ' href ='http://doc.rust-lang.org/nightly/syntax/ptr/struct.P.html ' title ='syntax::ptr::P '> P</ a > << a class ='type ' href ='http://doc.rust-lang.org/nightly/syntax/ast/type.MetaItem.html ' title ='syntax::ast::MetaItem '> MetaItem</ a > >) -> F::Result</ code > </ h4 >
56+ < h4 id ='method.build_meta_item_ ' class ='method '> < code > fn < a href ='#method.build_meta_item_ ' class ='fnname '> build_meta_item_</ a > (self, item: < a class ='enum ' href ='http://doc.rust-lang.org/nightly/syntax/ast/enum.MetaItem_.html ' title ='syntax::ast::MetaItem_ '> MetaItem_</ a > ) -> F::Result</ code > </ h4 >
57+ < h4 id ='method.word ' class ='method '> < code > fn < a href ='#method.word ' class ='fnname '> word</ a > <T>(self, word: T) -> F::Result < span class ='where '> where T: < a class ='trait ' href ='../../aster/str/trait.ToInternedString.html ' title ='aster::str::ToInternedString '> ToInternedString</ a > </ span > </ code > </ h4 >
58+ < h4 id ='method.list ' class ='method '> < code > fn < a href ='#method.list ' class ='fnname '> list</ a > <T>(self, word: T) -> < a class ='struct ' href ='../../aster/attr/struct.AttrListBuilder.html ' title ='aster::attr::AttrListBuilder '> AttrListBuilder</ a > <Self> < span class ='where '> where T: < a class ='trait ' href ='../../aster/str/trait.ToInternedString.html ' title ='aster::str::ToInternedString '> ToInternedString</ a > </ span > </ code > </ h4 >
59+ < h4 id ='method.name_value ' class ='method '> < code > fn < a href ='#method.name_value ' class ='fnname '> name_value</ a > <T>(self, name: T) -> < a class ='struct ' href ='../../aster/lit/struct.LitBuilder.html ' title ='aster::lit::LitBuilder '> LitBuilder</ a > << a class ='struct ' href ='../../aster/attr/struct.AttrNameValueBuilder.html ' title ='aster::attr::AttrNameValueBuilder '> AttrNameValueBuilder</ a > <Self>> < span class ='where '> where T: < a class ='trait ' href ='../../aster/str/trait.ToInternedString.html ' title ='aster::str::ToInternedString '> ToInternedString</ a > </ span > </ code > </ h4 >
60+ < h4 id ='method.automatically_derived ' class ='method '> < code > fn < a href ='#method.automatically_derived ' class ='fnname '> automatically_derived</ a > (self) -> F::Result</ code > </ h4 >
61+ < h4 id ='method.inline ' class ='method '> < code > fn < a href ='#method.inline ' class ='fnname '> inline</ a > (self) -> F::Result</ code > </ h4 >
62+ < h4 id ='method.test ' class ='method '> < code > fn < a href ='#method.test ' class ='fnname '> test</ a > (self) -> F::Result</ code > </ h4 >
63+ < h4 id ='method.allow ' class ='method '> < code > fn < a href ='#method.allow ' class ='fnname '> allow</ a > <I, T>(self, iter: I) -> F::Result < span class ='where '> where I: < a class ='trait ' href ='http://doc.rust-lang.org/nightly/core/iter/trait.IntoIterator.html ' title ='core::iter::IntoIterator '> IntoIterator</ a > <Item=T>, T: < a class ='trait ' href ='../../aster/str/trait.ToInternedString.html ' title ='aster::str::ToInternedString '> ToInternedString</ a > </ span > </ code > </ h4 >
64+ < h4 id ='method.warn ' class ='method '> < code > fn < a href ='#method.warn ' class ='fnname '> warn</ a > <I, T>(self, iter: I) -> F::Result < span class ='where '> where I: < a class ='trait ' href ='http://doc.rust-lang.org/nightly/core/iter/trait.IntoIterator.html ' title ='core::iter::IntoIterator '> IntoIterator</ a > <Item=T>, T: < a class ='trait ' href ='../../aster/str/trait.ToInternedString.html ' title ='aster::str::ToInternedString '> ToInternedString</ a > </ span > </ code > </ h4 >
65+ < h4 id ='method.deny ' class ='method '> < code > fn < a href ='#method.deny ' class ='fnname '> deny</ a > <I, T>(self, iter: I) -> F::Result < span class ='where '> where I: < a class ='trait ' href ='http://doc.rust-lang.org/nightly/core/iter/trait.IntoIterator.html ' title ='core::iter::IntoIterator '> IntoIterator</ a > <Item=T>, T: < a class ='trait ' href ='../../aster/str/trait.ToInternedString.html ' title ='aster::str::ToInternedString '> ToInternedString</ a > </ span > </ code > </ h4 >
66+ < h4 id ='method.features ' class ='method '> < code > fn < a href ='#method.features ' class ='fnname '> features</ a > <I, T>(self, iter: I) -> F::Result < span class ='where '> where I: < a class ='trait ' href ='http://doc.rust-lang.org/nightly/core/iter/trait.IntoIterator.html ' title ='core::iter::IntoIterator '> IntoIterator</ a > <Item=T>, T: < a class ='trait ' href ='../../aster/str/trait.ToInternedString.html ' title ='aster::str::ToInternedString '> ToInternedString</ a > </ span > </ code > </ h4 >
67+ < h4 id ='method.plugins ' class ='method '> < code > fn < a href ='#method.plugins ' class ='fnname '> plugins</ a > <I, T>(self, iter: I) -> F::Result < span class ='where '> where I: < a class ='trait ' href ='http://doc.rust-lang.org/nightly/core/iter/trait.IntoIterator.html ' title ='core::iter::IntoIterator '> IntoIterator</ a > <Item=T>, T: < a class ='trait ' href ='../../aster/str/trait.ToInternedString.html ' title ='aster::str::ToInternedString '> ToInternedString</ a > </ span > </ code > </ h4 >
68+ < h4 id ='method.doc ' class ='method '> < code > fn < a href ='#method.doc ' class ='fnname '> doc</ a > <T>(self, doc: T) -> F::Result < span class ='where '> where T: < a class ='trait ' href ='../../aster/str/trait.ToInternedString.html ' title ='aster::str::ToInternedString '> ToInternedString</ a > </ span > </ code > </ h4 >
69+ < div class ='docblock '> < p > Create a #[doc = "..."] node. Note that callers of this must make sure to prefix their
70+ comments with either "///" or "/**" if an outer comment, or "//!" or "/*!" if an inner
71+ comment.</ p >
72+ </ div > </ div > < h2 id ='implementations '> Trait Implementations</ h2 > < h3 class ='impl '> < code > impl<F> < a class ='trait ' href ='../../aster/invoke/trait.Invoke.html ' title ='aster::invoke::Invoke '> Invoke</ a > << a class ='struct ' href ='http://doc.rust-lang.org/nightly/syntax/ptr/struct.P.html ' title ='syntax::ptr::P '> P</ a > << a class ='type ' href ='http://doc.rust-lang.org/nightly/syntax/ast/type.MetaItem.html ' title ='syntax::ast::MetaItem '> MetaItem</ a > >> for < a class ='struct ' href ='../../aster/attr/struct.AttrBuilder.html ' title ='aster::attr::AttrBuilder '> AttrBuilder</ a > <F> < span class ='where '> where F: < a class ='trait ' href ='../../aster/invoke/trait.Invoke.html ' title ='aster::invoke::Invoke '> Invoke</ a > << a class ='type ' href ='http://doc.rust-lang.org/nightly/syntax/ast/type.Attribute.html ' title ='syntax::ast::Attribute '> Attribute</ a > ></ span > </ code > </ h3 > < div class ='impl-items '> < h4 id ='assoc_type.Result ' class ='type '> < code > type Result = F::Result</ code > </ h4 >
73+ < h4 id ='method.invoke ' class ='method '> < code > fn < a href ='../../aster/invoke/trait.Invoke.html#method.invoke ' class ='fnname '> invoke</ a > (self, item: < a class ='struct ' href ='http://doc.rust-lang.org/nightly/syntax/ptr/struct.P.html ' title ='syntax::ptr::P '> P</ a > << a class ='type ' href ='http://doc.rust-lang.org/nightly/syntax/ast/type.MetaItem.html ' title ='syntax::ast::MetaItem '> MetaItem</ a > >) -> F::Result</ code > </ h4 >
74+ </ div > < h3 class ='impl '> < code > impl<F> < a class ='trait ' href ='../../aster/invoke/trait.Invoke.html ' title ='aster::invoke::Invoke '> Invoke</ a > << a class ='enum ' href ='http://doc.rust-lang.org/nightly/syntax/ast/enum.MetaItem_.html ' title ='syntax::ast::MetaItem_ '> MetaItem_</ a > > for < a class ='struct ' href ='../../aster/attr/struct.AttrBuilder.html ' title ='aster::attr::AttrBuilder '> AttrBuilder</ a > <F> < span class ='where '> where F: < a class ='trait ' href ='../../aster/invoke/trait.Invoke.html ' title ='aster::invoke::Invoke '> Invoke</ a > << a class ='type ' href ='http://doc.rust-lang.org/nightly/syntax/ast/type.Attribute.html ' title ='syntax::ast::Attribute '> Attribute</ a > ></ span > </ code > </ h3 > < div class ='impl-items '> < h4 id ='assoc_type.Result ' class ='type '> < code > type Result = F::Result</ code > </ h4 >
75+ < h4 id ='method.invoke ' class ='method '> < code > fn < a href ='../../aster/invoke/trait.Invoke.html#method.invoke ' class ='fnname '> invoke</ a > (self, item: < a class ='enum ' href ='http://doc.rust-lang.org/nightly/syntax/ast/enum.MetaItem_.html ' title ='syntax::ast::MetaItem_ '> MetaItem_</ a > ) -> F::Result</ code > </ h4 >
76+ </ div > </ section >
77+ < section id ='search ' class ="content hidden "> </ section >
78+
79+ < section class ="footer "> </ section >
80+
81+ < div id ="help " class ="hidden ">
82+ < div class ="shortcuts ">
83+ < h1 > Keyboard shortcuts</ h1 >
84+ < dl >
85+ < dt > ?</ dt >
86+ < dd > Show this help dialog</ dd >
87+ < dt > S</ dt >
88+ < dd > Focus the search field</ dd >
89+ < dt > ⇤</ dt >
90+ < dd > Move up in search results</ dd >
91+ < dt > ⇥</ dt >
92+ < dd > Move down in search results</ dd >
93+ < dt > ⏎</ dt >
94+ < dd > Go to active search result</ dd >
95+ </ dl >
96+ </ div >
97+ < div class ="infos ">
98+ < h1 > Search tricks</ h1 >
99+ < p >
100+ Prefix searches with a type followed by a colon (e.g.
101+ < code > fn:</ code > ) to restrict the search to a given type.
102+ </ p >
103+ < p >
104+ Accepted types are: < code > fn</ code > , < code > mod</ code > ,
105+ < code > struct</ code > , < code > enum</ code > ,
106+ < code > trait</ code > , < code > typedef</ code > (or
107+ < code > tdef</ code > ).
108+ </ p >
109+ < p >
110+ Search functions by type signature (e.g.
111+ < code > vec -> usize</ code > )
112+ </ p >
113+ </ div >
114+ </ div >
115+
116+
117+
118+ < script >
119+ window . rootPath = "../../" ;
120+ window . currentCrate = "aster" ;
121+ window . playgroundUrl = "" ;
122+ </ script >
123+ < script src ="../../jquery.js "> </ script >
124+ < script src ="../../main.js "> </ script >
125+
126+ < script async src ="../../search-index.js "> </ script >
127+ </ body >
128+ </ html >
0 commit comments