pub enum Type {
Unspecified,
Number,
String,
Bool,
Array(Vec<Type>),
Record(BTreeMap<String, Type>),
Subject,
App {
args: Vec<Type>,
result: Box<Type>,
},
}Expand description
Type information for expressions.
This enum represents the type of an expression in the E
Variants§
Unspecified
Type has not been determined yet
Number
Numeric type (f64)
String
String type
Bool
Boolean type
Array(Vec<Type>)
Array type
Record(BTreeMap<String, Type>)
Record (object) type
Subject
Subject pattern type
App
Function type
Implementations§
Trait Implementations§
impl Eq for Type
impl StructuralPartialEq for Type
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
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