We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc90357 commit 6268b3bCopy full SHA for 6268b3b
1 file changed
src/arena.rs
@@ -365,6 +365,11 @@ impl Arena {
365
self.exprs.rec(key)
366
}
367
368
+ /// Returns the map of type record fields for the given type [`Record`]
369
+ pub fn get_type_rec(&self, key: Record) -> &FxHashMap<StrRef, Type> {
370
+ self.types.get_record(key)
371
+ }
372
+
373
/// Returns the function argument types for the given [`ArgsRef`].
374
pub fn get_args(&self, key: ArgsRef) -> &[Type] {
375
self.types.get_args(key)
0 commit comments