pub enum OcamlTypeDecl {
Alias(OcamlType),
Record(Vec<OcamlRecordField>),
Variant(Vec<(String, Vec<OcamlType>)>),
Abstract,
}Expand description
An OCaml type declaration body.
Variants§
Alias(OcamlType)
A type alias: type t = int
Record(Vec<OcamlRecordField>)
A record type: type t = { field: ty; ... }
Variant(Vec<(String, Vec<OcamlType>)>)
A variant type: type t = A | B of ty1 * ty2 | ...
Abstract
An abstract type (signature only): type t
Trait Implementations§
Source§impl Clone for OcamlTypeDecl
impl Clone for OcamlTypeDecl
Source§fn clone(&self) -> OcamlTypeDecl
fn clone(&self) -> OcamlTypeDecl
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for OcamlTypeDecl
impl RefUnwindSafe for OcamlTypeDecl
impl Send for OcamlTypeDecl
impl Sync for OcamlTypeDecl
impl Unpin for OcamlTypeDecl
impl UnsafeUnpin for OcamlTypeDecl
impl UnwindSafe for OcamlTypeDecl
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