pub enum DhallType {
Show 15 variants
Bool,
Natural,
Integer,
Double,
Text,
List(Box<DhallType>),
Optional(Box<DhallType>),
Record(Vec<(String, DhallType)>),
Union(Vec<(String, Option<DhallType>)>),
Function(Box<DhallType>, Box<DhallType>),
Forall(String, Box<DhallType>, Box<DhallType>),
Type,
Kind,
Sort,
Named(String),
}Expand description
Dhall type-level expressions (a subset of DhallExpr, named for clarity).
Variants§
Bool
Bool
Natural
Natural
Integer
Integer
Double
Double
Text
Text
List(Box<DhallType>)
List T
Optional(Box<DhallType>)
Optional T
Record(Vec<(String, DhallType)>)
Record type: { field1 : T1, field2 : T2 }
Union(Vec<(String, Option<DhallType>)>)
Union type: < Ctor1 : T1 | Ctor2 | Ctor3 : T3 >
Function(Box<DhallType>, Box<DhallType>)
Function type: T1 -> T2
Forall(String, Box<DhallType>, Box<DhallType>)
Dependent function type: forall (x : T1) -> T2
Type
Type universe
Kind
Kind universe (type of types)
Sort
Sort universe (type of kinds)
Named(String)
Named type reference: Natural/show, MyRecord
Trait Implementations§
impl StructuralPartialEq for DhallType
Auto Trait Implementations§
impl Freeze for DhallType
impl RefUnwindSafe for DhallType
impl Send for DhallType
impl Sync for DhallType
impl Unpin for DhallType
impl UnsafeUnpin for DhallType
impl UnwindSafe for DhallType
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