pub enum HaskellDecl {
Data(HaskellDataDecl),
Newtype(HaskellNewtype),
TypeClass(HaskellTypeClass),
Instance(HaskellInstance),
Function(HaskellFunction),
TypeSynonym(String, Vec<String>, HaskellType),
Comment(String),
RawLine(String),
}Expand description
The various top-level declarations in a Haskell module.
Variants§
Data(HaskellDataDecl)
Newtype(HaskellNewtype)
TypeClass(HaskellTypeClass)
Instance(HaskellInstance)
Function(HaskellFunction)
TypeSynonym(String, Vec<String>, HaskellType)
Comment(String)
RawLine(String)
Trait Implementations§
Source§impl Clone for HaskellDecl
impl Clone for HaskellDecl
Source§fn clone(&self) -> HaskellDecl
fn clone(&self) -> HaskellDecl
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 moreSource§impl Debug for HaskellDecl
impl Debug for HaskellDecl
Source§impl Display for HaskellDecl
impl Display for HaskellDecl
Source§impl PartialEq for HaskellDecl
impl PartialEq for HaskellDecl
impl StructuralPartialEq for HaskellDecl
Auto Trait Implementations§
impl Freeze for HaskellDecl
impl RefUnwindSafe for HaskellDecl
impl Send for HaskellDecl
impl Sync for HaskellDecl
impl Unpin for HaskellDecl
impl UnsafeUnpin for HaskellDecl
impl UnwindSafe for HaskellDecl
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