hir

Trait 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§