clippy_utils::check_proc_macro

Trait 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 = EarlyContext<'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§