Struct aster::generics::GenericsBuilder
[−]
[src]
pub struct GenericsBuilder<F = Identity> { // some fields omitted }
pub struct GenericsBuilder<F = Identity> { // some fields omitted }
impl GenericsBuilder
fn new() -> Self
fn from_generics(generics: Generics) -> Self
impl<F> GenericsBuilder<F> where F: Invoke<Generics>
fn new_with_callback(callback: F) -> Self
fn from_generics_with_callback(generics: Generics, callback: F) -> Self
fn with(self, generics: Generics) -> Self
fn span(self, span: Span) -> Self
fn with_lifetimes<I, L>(self, iter: I) -> Self where I: IntoIterator<Item=L>, L: IntoLifetimeDef
fn with_lifetime_names<I, N>(self, iter: I) -> Self where I: IntoIterator<Item=N>, N: ToName
fn with_lifetime(self, lifetime: LifetimeDef) -> Self
fn lifetime_name<N>(self, name: N) -> Self where N: ToName
fn lifetime<N>(self, name: N) -> LifetimeDefBuilder<Self> where N: ToName
fn with_ty_params<I>(self, iter: I) -> Self where I: IntoIterator<Item=TyParam>
fn with_ty_param_ids<I, T>(self, iter: I) -> Self where I: IntoIterator<Item=T>, T: ToIdent
fn with_ty_param(self, ty_param: TyParam) -> Self
fn ty_param_id<I>(self, id: I) -> Self where I: ToIdent
fn ty_param<I>(self, id: I) -> TyParamBuilder<Self> where I: ToIdent
fn with_predicates<I>(self, iter: I) -> Self where I: IntoIterator<Item=WherePredicate>
fn with_predicate(self, predicate: WherePredicate) -> Self
fn add_lifetime_bound<L>(self, lifetime: L) -> Self where L: IntoLifetime
fn add_ty_param_bound<P>(self, path: P) -> Self where P: IntoPath
fn strip_bounds(self) -> Self
fn strip_lifetimes(self) -> Self
fn strip_ty_params(self) -> Self
fn strip_predicates(self) -> Self
fn build(self) -> F::Result
impl<F> Invoke<LifetimeDef> for GenericsBuilder<F> where F: Invoke<Generics>
type Result = Self
fn invoke(self, lifetime: LifetimeDef) -> Self
impl<F> Invoke<TyParam> for GenericsBuilder<F> where F: Invoke<Generics>
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
)