Struct aster::AstBuilder
[−]
[src]
pub struct AstBuilder { /* fields omitted */ }
Methods
impl AstBuilder
[src]
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 mac(&self) -> MacBuilder
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
impl Copy for AstBuilder
[src]
impl Clone for AstBuilder
[src]
fn clone(&self) -> AstBuilder
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more