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 } } }