mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-03 05:27:36 +00:00
16 lines
226 B
Rust
16 lines
226 B
Rust
![]() |
use super::with;
|
||
|
|
||
|
#[derive(Copy, Clone, Debug)]
|
||
|
pub struct Ty(pub usize);
|
||
|
|
||
|
impl Ty {
|
||
|
pub fn kind(&self) -> TyKind {
|
||
|
with(|context| context.ty_kind(*self))
|
||
|
}
|
||
|
}
|
||
|
|
||
|
pub enum TyKind {
|
||
|
Bool,
|
||
|
Tuple(Vec<Ty>),
|
||
|
}
|