Struct aster::item::ItemBuilder
[−]
[src]
pub struct ItemBuilder<F = Identity> { /* fields omitted */ }
pub struct ItemBuilder<F = Identity> { /* fields omitted */ }
impl ItemBuilder
[src]fn new() -> Self
impl<F> ItemBuilder<F> where F: Invoke<P<Item>>
[src]fn with_callback(callback: F) -> Self
fn build(self, item: P<Item>) -> F::Result
fn span(self, span: Span) -> Self
fn with_attrs<I>(self, iter: I) -> Self where I: IntoIterator<Item=Attribute>
fn with_attr(self, attr: Attribute) -> Self
fn attr(self) -> AttrBuilder<Self>
fn pub_(self) -> Self
fn build_item_kind<T>(self, id: T, item_kind: ItemKind) -> 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 union_<T>(self, id: T) -> ItemStructBuilder<F> where T: ToIdent
fn unit_struct<T>(self, id: T) -> F::Result 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) -> MacBuilder<ItemMacBuilder<F>>
fn mac_id<T>(self, id: T) -> MacBuilder<ItemMacBuilder<F>> where T: ToIdent
fn type_<T>(self, id: T) -> ItemTyBuilder<F> where T: ToIdent
fn trait_<T>(self, id: T) -> ItemTraitBuilder<F> where T: ToIdent
fn impl_(self) -> ItemImplBuilder<F>
fn const_<T>(self, id: T) -> ConstBuilder<ItemConstBuilder<F>> where T: ToIdent
impl<F> Invoke<Attribute> for ItemBuilder<F> where F: Invoke<P<Item>>
[src]