Struct aster::AstBuilder [] [src]

pub struct AstBuilder {
    // some fields omitted
}

Methods

impl AstBuilder

fn new() -> AstBuilder

fn span(self, span: Span) -> Self

fn interned_string<S>(&self, s: S) -> InternedString where S: ToInternedString

fn id<I>(&self, id: I) -> Ident where I: ToIdent

fn name<N>(&self, name: N) -> Name where N: ToName

fn lifetime<L>(&self, lifetime: L) -> Lifetime where L: IntoLifetime

fn arm(&self) -> ArmBuilder

fn attr(&self) -> AttrBuilder

fn path(&self) -> PathBuilder

fn qpath(&self) -> QPathBuilder

fn ty(&self) -> TyBuilder

fn lifetime_def<N>(&self, name: N) -> LifetimeDefBuilder where N: ToName

fn ty_param<I>(&self, id: I) -> TyParamBuilder where I: ToIdent

fn ty_param_bound(&self) -> TyParamBoundBuilder

fn from_ty_param(&self, ty_param: TyParam) -> TyParamBuilder

fn generics(&self) -> GenericsBuilder

fn where_predicate(&self) -> WherePredicateBuilder

fn from_generics(&self, generics: Generics) -> GenericsBuilder

fn lit(&self) -> LitBuilder

fn expr(&self) -> ExprBuilder

fn stmt(&self) -> StmtBuilder

fn block(&self) -> BlockBuilder

fn pat(&self) -> PatBuilder

fn fn_decl(&self) -> FnDeclBuilder

fn method_sig(&self) -> MethodSigBuilder

fn self_(&self) -> SelfBuilder

fn arg(&self) -> ArgBuilder

fn variant_data(&self) -> VariantDataBuilder

fn variant<T>(&self, id: T) -> VariantBuilder where T: ToIdent

fn struct_field<T>(&self, id: T) -> StructFieldBuilder where T: ToIdent

fn tuple_field(&self) -> StructFieldBuilder

fn item(&self) -> ItemBuilder

fn trait_item<T>(&self, id: T) -> ItemTraitItemBuilder where T: ToIdent

fn impl_item<T>(&self, id: T) -> ItemImplItemBuilder where T: ToIdent

fn const_(&self) -> ConstBuilder

Trait Implementations

Derived Implementations

impl Clone for AstBuilder

fn clone(&self) -> AstBuilder

1.0.0fn clone_from(&mut self, source: &Self)

impl Copy for AstBuilder