pub struct TypeCheckResult {
pub errors: Vec<TypeError>,
pub fn_sigs: HashMap<String, (Vec<Type>, Type, Vec<String>)>,
pub memo_safe_types: HashSet<String>,
}Expand description
Result of type-checking that also carries memo-safety metadata.
Fields§
§errors: Vec<TypeError>§fn_sigs: HashMap<String, (Vec<Type>, Type, Vec<String>)>For each user-defined fn: (param_types, return_type, effects). Used by the memo system to decide which fns qualify.
memo_safe_types: HashSet<String>Set of type names whose values are memo-safe (hashable scalars / records of scalars).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TypeCheckResult
impl RefUnwindSafe for TypeCheckResult
impl Send for TypeCheckResult
impl Sync for TypeCheckResult
impl Unpin for TypeCheckResult
impl UnsafeUnpin for TypeCheckResult
impl UnwindSafe for TypeCheckResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more