Struct aster::pat::PatBuilder
[−]
[src]
pub struct PatBuilder<F = Identity> { // some fields omitted }
pub struct PatBuilder<F = Identity> { // some fields omitted }
impl PatBuilder
fn new() -> Self
impl<F> PatBuilder<F> where F: Invoke<P<Pat>>
fn new_with_callback(callback: F) -> Self
fn span(self, span: Span) -> Self
fn build(self, pat: P<Pat>) -> F::Result
fn build_pat_(self, pat_: Pat_) -> F::Result
fn wild(self) -> F::Result
fn wild_multi(self) -> F::Result
fn build_id<I>(self, mode: BindingMode, id: I, sub: Option<P<Pat>>) -> F::Result where I: ToIdent
fn id<I>(self, id: I) -> F::Result where I: ToIdent
fn mut_id<I>(self, id: I) -> F::Result where I: ToIdent
fn ref_id<I>(self, id: I) -> F::Result where I: ToIdent
fn ref_mut_id<I>(self, id: I) -> F::Result where I: ToIdent
fn enum_(self) -> PathBuilder<PatEnumBuilder<F>>
fn struct_(self) -> PathBuilder<PatStructBuilder<F>>
fn expr(self) -> ExprBuilder<PatExprBuilder<F>>
fn tuple(self) -> PatTupleBuilder<F>
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
)