clippy_utils

Trait MaybePath

Source
pub trait MaybePath<'hir> {
    // Required methods
    fn hir_id(&self) -> HirId;
    fn qpath_opt(&self) -> Option<&QPath<'hir>>;
}

Required Methods§

Source

fn hir_id(&self) -> HirId

Source

fn qpath_opt(&self) -> Option<&QPath<'hir>>

Implementations on Foreign Types§

Source§

impl<'hir> MaybePath<'hir> for Expr<'hir>

Source§

fn hir_id(&self) -> HirId

Source§

fn qpath_opt(&self) -> Option<&QPath<'hir>>

Source§

impl<'hir> MaybePath<'hir> for Pat<'hir>

Source§

fn hir_id(&self) -> HirId

Source§

fn qpath_opt(&self) -> Option<&QPath<'hir>>

Source§

impl<'hir> MaybePath<'hir> for Ty<'hir>

Source§

fn hir_id(&self) -> HirId

Source§

fn qpath_opt(&self) -> Option<&QPath<'hir>>

Implementors§