pub trait WithSearchPat {
    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 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<'cx> WithSearchPat for Variant<'cx>

§

type Context = LateContext<'cx>

source§

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

source§

fn span(&self) -> Span

source§

impl<'cx> WithSearchPat for Item<'cx>

§

type Context = LateContext<'cx>

source§

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

source§

fn span(&self) -> Span

source§

impl<'cx> WithSearchPat for TraitItem<'cx>

§

type Context = LateContext<'cx>

source§

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

source§

fn span(&self) -> Span

source§

impl<'cx> WithSearchPat for Expr<'cx>

§

type Context = LateContext<'cx>

source§

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

source§

fn span(&self) -> Span

source§

impl<'cx> WithSearchPat for FieldDef<'cx>

§

type Context = LateContext<'cx>

source§

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

source§

fn span(&self) -> Span

source§

impl<'cx> WithSearchPat for ImplItem<'cx>

§

type Context = LateContext<'cx>

source§

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

source§

fn span(&self) -> Span

Implementors§