pub enum HaskellLit {
Int(i64),
Float(f64),
Char(char),
Str(String),
Bool(bool),
Unit,
}Expand description
Haskell literal values.
Variants§
Int(i64)
Integer literal: 42, -7
Float(f64)
Floating-point literal: 3.14
Char(char)
Character literal: 'a'
Str(String)
String literal: "hello"
Bool(bool)
Boolean literals True / False
Unit
Unit literal ()
Trait Implementations§
Source§impl Clone for HaskellLit
impl Clone for HaskellLit
Source§fn clone(&self) -> HaskellLit
fn clone(&self) -> HaskellLit
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 HaskellLit
impl Debug for HaskellLit
Source§impl Display for HaskellLit
impl Display for HaskellLit
Source§impl PartialEq for HaskellLit
impl PartialEq for HaskellLit
impl StructuralPartialEq for HaskellLit
Auto Trait Implementations§
impl Freeze for HaskellLit
impl RefUnwindSafe for HaskellLit
impl Send for HaskellLit
impl Sync for HaskellLit
impl Unpin for HaskellLit
impl UnsafeUnpin for HaskellLit
impl UnwindSafe for HaskellLit
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