Enum purescript_waterslide::PursType
[−]
[src]
pub enum PursType { Struct(PursConstructor, Vec<(String, PursConstructor)>), TupleStruct(PursConstructor, Vec<PursConstructor>), Enum(PursConstructor, Vec<PursConstructor>), }
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 Clone for PursType
[src]
fn clone(&self) -> PursType
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for PursType
[src]
impl PartialEq for PursType
[src]
fn eq(&self, __arg_0: &PursType) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &PursType) -> bool
This method tests for !=
.