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
use crate::TypeId;

#[derive(Debug, Clone)]
pub struct Union {
    pub types: Vec<TypeId>,
}

impl Union {
    pub fn new(types: Vec<TypeId>) -> Self {
        Self { types }
    }
}