wip: merge in some code from the other branch

This commit is contained in:
Jonathan Kelley committed 2021-06-05 23:47:54 -04:00
1 parent 795a54a2e4
commit 7790750349
12 files changed
+782 -124

No files matched your search

+4 -2
View File
@@ -9,8 +9,9 @@ use crate::innerlude::FC;
pub type ScopeIdx = generational_arena::Index;
pub trait Properties: PartialEq {
pub unsafe trait Properties: PartialEq {
type Builder;
const CAN_BE_MEMOIZED: bool;
fn builder() -> Self::Builder;
}
@@ -21,7 +22,8 @@ impl EmptyBuilder {
}
}
impl Properties for () {
unsafe impl Properties for () {
const CAN_BE_MEMOIZED: bool = true;
type Builder = EmptyBuilder;
fn builder() -> Self::Builder {