pub struct Package { /* private fields */ }
Expand description
A Package
describes a single package.
Implementations§
source§impl Package
impl Package
sourcepub fn all(db: &dyn HirDatabase) -> Vec<Package>
pub fn all(db: &dyn HirDatabase) -> Vec<Package>
Returns all the packages defined in the database
sourcepub fn root_module(self, db: &dyn HirDatabase) -> Module
pub fn root_module(self, db: &dyn HirDatabase) -> Module
Returns the root module of the package (represented by the mod.rs
in the source root)
sourcepub fn modules(self, db: &dyn HirDatabase) -> Vec<Module>
pub fn modules(self, db: &dyn HirDatabase) -> Vec<Module>
Returns all the modules in the package
Trait Implementations§
impl Copy for Package
impl Eq for Package
impl StructuralEq for Package
impl StructuralPartialEq for Package
Auto Trait Implementations§
impl RefUnwindSafe for Package
impl Send for Package
impl Sync for Package
impl Unpin for Package
impl UnwindSafe for Package
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.