pub enum OcamlType {
}Expand description
OCaml type representation.
Variants§
Int
int
Float
float
Bool
bool
Char
char
String
string
Unit
unit
Never
Bottom type (represented as 'a with no instances in practice)
List(Box<OcamlType>)
t list
Array(Box<OcamlType>)
t array
Tuple(Vec<OcamlType>)
t1 * t2 * ... (product/tuple type)
Option(Box<OcamlType>)
t option
Result(Box<OcamlType>, Box<OcamlType>)
(t, e) result
Fun(Box<OcamlType>, Box<OcamlType>)
a -> b (function type)
Custom(String)
A named type: my_type, Tree.t
Polymorphic(String)
A type variable: 'a, 'b
Module(String)
A module path type: MyModule.t
Trait Implementations§
impl Eq for OcamlType
impl StructuralPartialEq for OcamlType
Auto Trait Implementations§
impl Freeze for OcamlType
impl RefUnwindSafe for OcamlType
impl Send for OcamlType
impl Sync for OcamlType
impl Unpin for OcamlType
impl UnsafeUnpin for OcamlType
impl UnwindSafe for OcamlType
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