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

Implementors§