Trait DepNodeExt

Source
pub trait DepNodeExt: Sized {
    // Required methods
    fn extract_def_id(&self, tcx: TyCtxt<'_>) -> Option<DefId>;
    fn from_label_string(
        tcx: TyCtxt<'_>,
        label: &str,
        def_path_hash: DefPathHash,
    ) -> Result<Self, ()>;
    fn has_label_string(label: &str) -> bool;
}

Required Methods§

Source

fn extract_def_id(&self, tcx: TyCtxt<'_>) -> Option<DefId>

Source

fn from_label_string( tcx: TyCtxt<'_>, label: &str, def_path_hash: DefPathHash, ) -> Result<Self, ()>

Source

fn has_label_string(label: &str) -> bool

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§