Struct aster::AstBuilder
[−]
[src]
pub struct AstBuilder { // some fields omitted }
pub struct AstBuilder { // some fields omitted }
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 attr(&self) -> AttrBuilder
fn path(&self) -> PathBuilder
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 from_ty_param(&self, ty_param: TyParam) -> TyParamBuilder
fn generics(&self) -> GenericsBuilder
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<I>(&self, id: I) -> MethodBuilder where I: ToIdent
fn arg<I>(&self, id: I) -> ArgBuilder where I: ToIdent
fn struct_def(&self) -> StructDefBuilder
fn variant<T>(&self, id: T) -> VariantBuilder where T: ToIdent
fn field<T>(&self, id: T) -> StructFieldBuilder where T: ToIdent
fn item(&self) -> ItemBuilder
impl Clone for AstBuilder
fn clone(&self) -> AstBuilder
fn clone_from(&mut self, source: &Self)
impl Copy for AstBuilder
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
)