pub enum PursType {
Struct(PursConstructor, Vec<(String, PursConstructor)>),
TupleStruct(PursConstructor, Vec<PursConstructor>),
Enum(PursConstructor, Vec<PursConstructor>),
}
Expand description
The representation for a Purescript data type declaration. The PursType
for a Rust struct and
enum can be obtained by deriving the AsPursType
trait.
Variants§
Struct(PursConstructor, Vec<(String, PursConstructor)>)
A purescript record
TupleStruct(PursConstructor, Vec<PursConstructor>)
A purescript type constructor with arguments
Enum(PursConstructor, Vec<PursConstructor>)
A purescript data type with multiple constructors
Trait Implementations§
impl StructuralPartialEq for PursType
Auto Trait Implementations§
impl Freeze for PursType
impl RefUnwindSafe for PursType
impl Send for PursType
impl Sync for PursType
impl Unpin for PursType
impl UnwindSafe for PursType
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