mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-29 06:23:25 +00:00
15 lines
415 B
Rust
15 lines
415 B
Rust
|
use ra_arena::{impl_arena_id, RawId};
|
||
|
use ra_db::CrateId;
|
||
|
|
||
|
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||
|
pub struct ModuleId {
|
||
|
pub krate: CrateId,
|
||
|
pub module_id: CrateModuleId,
|
||
|
}
|
||
|
|
||
|
/// An ID of a module, **local** to a specific crate
|
||
|
// FIXME: rename to `LocalModuleId`.
|
||
|
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||
|
pub struct CrateModuleId(RawId);
|
||
|
impl_arena_id!(CrateModuleId);
|