pub enum Atom<'a> {
Identifier(&'a str),
Quote(&'a str),
Integer(i64),
Float(f64),
List(LispIter<'a>),
}
Variants§
Identifier(&'a str)
Any unquoted word seperated by whitespaces or bound by a list.
Quote(&'a str)
Any string between two “ “
Note: quotes are unescaped i.e. \n \r and other escape sequences aren’t taken into account. This is to prevent dynamic heap allocations.
Integer(i64)
Signed 64-bit integer.
Float(f64)
64-bit floating-point number.
List(LispIter<'a>)
Anything between two ( )
Holds another LispIter
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Atom<'a>
impl<'a> RefUnwindSafe for Atom<'a>
impl<'a> Send for Atom<'a>
impl<'a> Sync for Atom<'a>
impl<'a> Unpin for Atom<'a>
impl<'a> UnwindSafe for Atom<'a>
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