Add builder & linker

This commit is contained in:
Shunsuke Shibayama 2022-09-21 01:21:17 +09:00
parent 671fbee518
commit 201b313cd2
19 changed files with 241 additions and 109 deletions

View file

@ -2839,6 +2839,7 @@ pub enum DefKind {
Trait,
Subsume,
StructuralTrait,
Module,
Other,
}
@ -2846,6 +2847,10 @@ impl DefKind {
pub const fn is_trait(&self) -> bool {
matches!(self, Self::Trait | Self::Subsume | Self::StructuralTrait)
}
pub fn is_module(&self) -> bool {
matches!(self, Self::Module)
}
}
#[derive(Clone, Debug, PartialEq, Eq, Hash)]