pub trait HasCrate {
// Required method
fn krate(&self, db: &dyn HirDatabase) -> Crate;
}
Expand description
Trait for obtaining the defining crate of an item.
pub trait HasCrate {
// Required method
fn krate(&self, db: &dyn HirDatabase) -> Crate;
}
Trait for obtaining the defining crate of an item.