paralegal_flow::utils

Trait IntoDefId

Source
pub trait IntoDefId {
    // Required method
    fn into_def_id(self, tcx: TyCtxt<'_>) -> DefId;
}
Expand description

Brother to IntoLocalDefId, converts the id type to a DefId using TyCtxt

Required Methods§

Source

fn into_def_id(self, tcx: TyCtxt<'_>) -> DefId

Implementations on Foreign Types§

Source§

impl IntoDefId for DefId

Source§

fn into_def_id(self, _: TyCtxt<'_>) -> DefId

Source§

impl IntoDefId for LocalDefId

Source§

fn into_def_id(self, _: TyCtxt<'_>) -> DefId

Source§

impl IntoDefId for BodyId

Source§

fn into_def_id(self, tcx: TyCtxt<'_>) -> DefId

Source§

impl IntoDefId for HirId

Source§

fn into_def_id(self, tcx: TyCtxt<'_>) -> DefId

Source§

impl IntoDefId for Res

Source§

fn into_def_id(self, _: TyCtxt<'_>) -> DefId

Source§

impl<D: Copy + IntoDefId> IntoDefId for &D

Source§

fn into_def_id(self, tcx: TyCtxt<'_>) -> DefId

Implementors§