pub struct HaskellInstance {
pub class: String,
pub instance_type: HaskellType,
pub context: Vec<HaskellType>,
pub where_clause: Vec<HaskellFunction>,
}Expand description
A Haskell instance declaration.
Example:
instance Show Expr where
show (Lit n) = show n
show (Add l r) = show l ++ " + " ++ show rFields§
§class: StringClass being instantiated: Show
instance_type: HaskellTypeType being instantiated: Maybe Int
context: Vec<HaskellType>Context constraints: Show a
where_clause: Vec<HaskellFunction>Method implementations as functions
Trait Implementations§
Source§impl Clone for HaskellInstance
impl Clone for HaskellInstance
Source§fn clone(&self) -> HaskellInstance
fn clone(&self) -> HaskellInstance
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 HaskellInstance
impl Debug for HaskellInstance
Source§impl Display for HaskellInstance
impl Display for HaskellInstance
Source§impl PartialEq for HaskellInstance
impl PartialEq for HaskellInstance
impl StructuralPartialEq for HaskellInstance
Auto Trait Implementations§
impl Freeze for HaskellInstance
impl RefUnwindSafe for HaskellInstance
impl Send for HaskellInstance
impl Sync for HaskellInstance
impl Unpin for HaskellInstance
impl UnsafeUnpin for HaskellInstance
impl UnwindSafe for HaskellInstance
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