pub enum NilSymbol {
EmptyList,
Default,
Special,
}Expand description
Defines the treatment of the symbol nil.
Variants§
EmptyList
Parse nil like as the empty list. This the behavior of Emacs
Lisp and Common Lisp.
In the parsed Value, the empty list, written as () and the
empty list, written as nil are both represented by the
Value::Null variant.
Default
Parse nil as a regular symbol. This is the behavior found in
Scheme.
The parsed Value will be equal to Value::symbol("nil").
Special
Parse nil as a special value. This allows treating the nil
symbol specially when processing the parsed data.
The parsed Value will be equal to Value::Nil.
Trait Implementations§
impl Copy for NilSymbol
impl StructuralPartialEq for NilSymbol
Auto Trait Implementations§
impl Freeze for NilSymbol
impl RefUnwindSafe for NilSymbol
impl Send for NilSymbol
impl Sync for NilSymbol
impl Unpin for NilSymbol
impl UnwindSafe for NilSymbol
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