pub enum Lit {
Int(i64),
BigInt(BigInt),
Float(u64),
Duration(i64),
Date(i32),
Moment(i64),
}Expand description
A LOGOS literal with no Lean counterpart. Nat and Text literals are Node::NatLit and
Node::StrLit. An integer is canonical: one that fits i64 is Int, any other BigInt.
A float is held by its bits, so equal literals are one id and 0.0/-0.0 stay apart.
Variants§
Trait Implementations§
impl Eq for Lit
impl StructuralPartialEq for Lit
Auto Trait Implementations§
impl Freeze for Lit
impl RefUnwindSafe for Lit
impl Send for Lit
impl Sync for Lit
impl Unpin for Lit
impl UnsafeUnpin for Lit
impl UnwindSafe for Lit
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