Struct aster::item::ItemBuilder
[−]
[src]
pub struct ItemBuilder<F = Identity> { // some fields omitted }
pub struct ItemBuilder<F = Identity> { // some fields omitted }
impl ItemBuilder
fn new() -> Self
impl<F> ItemBuilder<F> where F: Invoke<P<Item>>
fn new_with_callback(callback: F) -> Self
fn build(self, item: P<Item>) -> F::Result
fn span(self, span: Span) -> Self
fn with_attr(self, attr: Attribute) -> Self
fn attr(self) -> AttrBuilder<Self>
fn pub_(self) -> Self
fn build_item_<T>(self, id: T, item_: Item_) -> F::Result where T: ToIdent
fn fn_<T>(self, id: T) -> FnDeclBuilder<ItemFnDeclBuilder<F>> where T: ToIdent
fn build_use(self, view_path: ViewPath_) -> F::Result
fn use_(self) -> PathBuilder<ItemUseBuilder<F>>
fn struct_<T>(self, id: T) -> ItemStructBuilder<F> where T: ToIdent
fn tuple_struct<T>(self, id: T) -> ItemTupleStructBuilder<F> where T: ToIdent
fn enum_<T>(self, id: T) -> ItemEnumBuilder<F> where T: ToIdent
fn extern_crate<T>(self, id: T) -> ItemExternCrateBuilder<F> where T: ToIdent
fn mac(self) -> ItemMacBuilder<F>
fn type_<T>(self, id: T) -> ItemTyBuilder<F> where T: ToIdent
impl<F> Invoke<Attribute> for ItemBuilder<F> where F: Invoke<P<Item>>
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
, enum
,
trait
, typedef
(or
tdef
).
Search functions by type signature (e.g.
vec -> usize
)