Trait hir::HasCrate

source ·
pub trait HasCrate {
    // Required method
    fn krate(&self, db: &dyn HirDatabase) -> Crate;
}
Expand description

Trait for obtaining the defining crate of an item.

Required Methods§

source

fn krate(&self, db: &dyn HirDatabase) -> Crate

Implementors§