feat: add IrregularEq

This commit is contained in:
Shunsuke Shibayama 2024-02-09 02:35:46 +09:00
parent 3eec9ed590
commit b7d9598d28
10 changed files with 71 additions and 2 deletions

View file

@ -1065,6 +1065,25 @@ impl Context {
)
}
#[inline]
pub fn builtin_patch<S: Into<Str>>(
name: S,
impls: Type,
params: Vec<ParamSpec>,
capacity: usize,
) -> Self {
Self::poly(
name.into(),
ErgConfig::default(),
ContextKind::Patch(impls),
params,
None,
None,
capacity,
Self::TOP_LEVEL,
)
}
#[inline]
pub fn module(
name: Str,