pub enum Lisp {
Any(Vec<Lisp>),
Keyword(String),
Function(String),
Operator(String),
Number(Box<LispNumber>),
Symbol(Box<LispSymbol>),
String(Box<ListString>),
}
Expand description
The lisp data structure
Variants§
Any(Vec<Lisp>)
A normal list of lisp
Keyword(String)
Mark as a keyword
Function(String)
Mark as a function
Operator(String)
Mark as a operator
Number(Box<LispNumber>)
Mark as a number
Symbol(Box<LispSymbol>)
Mark as a symbol
String(Box<ListString>)
Mark as a string
Implementations§
Trait Implementations§
source§impl From<LispNumber> for Lisp
impl From<LispNumber> for Lisp
source§fn from(value: LispNumber) -> Self
fn from(value: LispNumber) -> Self
Converts to this type from the input type.
source§impl From<LispSymbol> for Lisp
impl From<LispSymbol> for Lisp
source§fn from(value: LispSymbol) -> Self
fn from(value: LispSymbol) -> Self
Converts to this type from the input type.
source§impl From<ListString> for Lisp
impl From<ListString> for Lisp
source§fn from(value: ListString) -> Self
fn from(value: ListString) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for Lisp
impl Send for Lisp
impl Sync for Lisp
impl Unpin for Lisp
impl UnwindSafe for Lisp
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