rue-types 0.10.0

A type system for the Rue programming language.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::collections::HashMap;

use crate::TypeId;

#[derive(Debug, Clone)]
pub struct Apply {
    pub inner: TypeId,
    pub generics: HashMap<TypeId, TypeId>,
}

impl Apply {
    pub fn new(inner: TypeId, generics: HashMap<TypeId, TypeId>) -> Self {
        Self { inner, generics }
    }
}