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)

source§

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

source§

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>

source§

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<'_>

source§

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<'_>

source§

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<'_>

source§

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<'_>

source§

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<'_>

source§

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<'_>

source§

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<'_>

source§

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

source§

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

source§

type Context = LateContext<'tcx>

source§

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

source§

fn span(&self) -> Span

Implementors§