Struct aster::ty_param::TyParamBuilder
[−]
[src]
pub struct TyParamBuilder<F = Identity> { // some fields omitted }
pub struct TyParamBuilder<F = Identity> { // some fields omitted }
impl TyParamBuilder
fn new<I>(id: I) -> Self where I: ToIdent
fn from_ty_param(ty_param: TyParam) -> Self
impl<F> TyParamBuilder<F> where F: Invoke<TyParam>
fn new_with_callback<I>(id: I, callback: F) -> Self where I: ToIdent
fn from_ty_param_with_callback(callback: F, ty_param: TyParam) -> Self
fn span(self, span: Span) -> Self
fn with_default(self, ty: P<Ty>) -> Self
fn with_trait_bound(self, trait_ref: PolyTraitRef) -> Self
fn trait_bound<P>(self, path: P) -> PolyTraitRefBuilder<Self> where P: IntoPath
fn lifetime_bound<L>(self, lifetime: L) -> Self where L: IntoLifetime
fn build(self) -> F::Result
impl<F> Invoke<PolyTraitRef> for TyParamBuilder<F> where F: Invoke<TyParam>
type Result = Self
fn invoke(self, trait_ref: PolyTraitRef) -> Self
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
)