pub enum TypeExpr {
Show 15 variants
Int,
Float,
Bool,
String,
Unit,
Unknown,
Named(&'static str),
Array(Box<TypeExpr>),
Map(Box<TypeExpr>, Box<TypeExpr>),
Result(Box<TypeExpr>, Box<TypeExpr>),
Option(Box<TypeExpr>),
Table,
Generic(&'static str),
SelfType,
Function {
params: Vec<TypeExpr>,
return_type: Box<TypeExpr>,
},
}Variants§
Int
Float
Bool
String
Unit
Unknown
Named(&'static str)
Array(Box<TypeExpr>)
Map(Box<TypeExpr>, Box<TypeExpr>)
Result(Box<TypeExpr>, Box<TypeExpr>)
Option(Box<TypeExpr>)
Table
Generic(&'static str)
SelfType
Function
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TypeExpr
impl RefUnwindSafe for TypeExpr
impl Send for TypeExpr
impl Sync for TypeExpr
impl Unpin for TypeExpr
impl UnwindSafe for TypeExpr
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