Trait clippy_utils::check_proc_macro::WithSearchPat

source ·
pub trait WithSearchPat<'cx> {
    type Context: LintContext;

    // Required methods
    fn search_pat(&self, cx: &Self::Context) -> (Pat, Pat);
    fn span(&self) -> Span;
}

Required Associated Types§

Required Methods§

source

fn search_pat(&self, cx: &Self::Context) -> (Pat, Pat)

source

fn span(&self) -> Span

Implementations on Foreign Types§

source§

impl<'cx> WithSearchPat<'cx> for (&FnKind<'cx>, &Body<'cx>, HirId, Span)

§

type Context = LateContext<'cx>

source§

fn search_pat(&self, cx: &Self::Context) -> (Pat, Pat)

source§

fn span(&self) -> Span

source§

impl<'tcx> WithSearchPat<'tcx> for Attribute

§

type Context = LateContext<'tcx>

source§

fn search_pat(&self, _cx: &Self::Context) -> (Pat, Pat)

source§

fn span(&self) -> Span

source§

impl<'tcx> WithSearchPat<'tcx> for Expr<'tcx>

§

type Context = LateContext<'tcx>

source§

fn search_pat(&self, cx: &Self::Context) -> (Pat, Pat)

source§

fn span(&self) -> Span

source§

impl<'tcx> WithSearchPat<'tcx> for FieldDef<'_>

§

type Context = LateContext<'tcx>

source§

fn search_pat(&self, _cx: &Self::Context) -> (Pat, Pat)

source§

fn span(&self) -> Span

source§

impl<'tcx> WithSearchPat<'tcx> for ImplItem<'_>

§

type Context = LateContext<'tcx>

source§

fn search_pat(&self, _cx: &Self::Context) -> (Pat, Pat)

source§

fn span(&self) -> Span

source§

impl<'tcx> WithSearchPat<'tcx> for Item<'_>

§

type Context = LateContext<'tcx>

source§

fn search_pat(&self, _cx: &Self::Context) -> (Pat, Pat)

source§

fn span(&self) -> Span

source§

impl<'tcx> WithSearchPat<'tcx> for Path<'_>

§

type Context = LateContext<'tcx>

source§

fn search_pat(&self, _cx: &Self::Context) -> (Pat, Pat)

source§

fn span(&self) -> Span

source§

impl<'tcx> WithSearchPat<'tcx> for TraitItem<'_>

§

type Context = LateContext<'tcx>

source§

fn search_pat(&self, _cx: &Self::Context) -> (Pat, Pat)

source§

fn span(&self) -> Span

source§

impl<'tcx> WithSearchPat<'tcx> for Ty<'_>

§

type Context = LateContext<'tcx>

source§

fn search_pat(&self, _cx: &Self::Context) -> (Pat, Pat)

source§

fn span(&self) -> Span

source§

impl<'tcx> WithSearchPat<'tcx> for Variant<'_>

§

type Context = LateContext<'tcx>

source§

fn search_pat(&self, _cx: &Self::Context) -> (Pat, Pat)

source§

fn span(&self) -> Span

source§

impl<'tcx> WithSearchPat<'tcx> for Ident

§

type Context = LateContext<'tcx>

source§

fn search_pat(&self, _cx: &Self::Context) -> (Pat, Pat)

source§

fn span(&self) -> Span

source§

impl<'tcx> WithSearchPat<'tcx> for Lit

§

type Context = LateContext<'tcx>

source§

fn search_pat(&self, _cx: &Self::Context) -> (Pat, Pat)

source§

fn span(&self) -> Span

Implementors§