pub enum IrType {
Unit,
Bool,
Nat,
Int,
String,
Var(String),
Function {
params: Vec<IrType>,
ret: Box<IrType>,
},
Struct {
name: String,
fields: Vec<(String, IrType)>,
},
Array {
elem: Box<IrType>,
len: usize,
},
Pointer(Box<IrType>),
Unknown,
}Expand description
Intermediate representation type for values
Variants§
Trait Implementations§
impl Eq for IrType
impl StructuralPartialEq for IrType
Auto Trait Implementations§
impl Freeze for IrType
impl RefUnwindSafe for IrType
impl Send for IrType
impl Sync for IrType
impl Unpin for IrType
impl UnsafeUnpin for IrType
impl UnwindSafe for IrType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more