Skip to main content

rajac_types/
array_type.rs

1use crate::TypeId;
2
3#[derive(Debug, Clone, PartialEq)]
4pub struct ArrayType {
5    pub element_type: TypeId,
6}
7
8impl ArrayType {
9    pub fn new(element_type: TypeId) -> Self {
10        Self { element_type }
11    }
12}