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 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<'cx> 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<'cx> for ImplItem<'cx>

§

type Context = LateContext<'cx>

source§

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

source§

fn span(&self) -> Span

source§

impl<'cx> WithSearchPat<'cx> for Ty<'cx>

§

type Context = LateContext<'cx>

source§

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

source§

fn span(&self) -> Span

source§

impl<'cx> WithSearchPat<'cx> 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<'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<'cx> WithSearchPat<'cx> 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<'cx> for &'cx Attribute

§

type Context = LateContext<'cx>

source§

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

source§

fn span(&self) -> Span

source§

impl<'cx> WithSearchPat<'cx> for Ident

§

type Context = LateContext<'cx>

source§

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

source§

fn span(&self) -> Span

source§

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

§

type Context = LateContext<'cx>

source§

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

source§

fn span(&self) -> Span

Implementors§