#[non_exhaustive]pub enum NodeKind<'e> {
Show 16 variants
Vector(Vec<Node<'e>>, Vec<Discard<'e>>),
Set(Vec<Node<'e>>, Vec<Discard<'e>>),
Map(Vec<(Node<'e>, Node<'e>)>, Vec<Discard<'e>>),
List(Vec<Node<'e>>, Vec<Discard<'e>>),
Key(&'e str),
Symbol(&'e str),
Str(&'e str),
Int(i64),
Tagged(&'e str, Span, Box<Node<'e>>),
Double(OrderedFloat<f64>),
Rational((i64, i64)),
BigInt(BigInt),
BigDec(BigDecimal),
Char(char),
Bool(bool),
Nil,
}Expand description
Possible kinds of an EDN node
NOTE: The vector of items in NodeKind::Set may contain duplicate items.
NOTE: The vector of entries in NodeKind::Map may contain duplicate keys.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Vector(Vec<Node<'e>>, Vec<Discard<'e>>)
Set(Vec<Node<'e>>, Vec<Discard<'e>>)
Map(Vec<(Node<'e>, Node<'e>)>, Vec<Discard<'e>>)
List(Vec<Node<'e>>, Vec<Discard<'e>>)
Key(&'e str)
Symbol(&'e str)
Str(&'e str)
Int(i64)
Tagged(&'e str, Span, Box<Node<'e>>)
Double(OrderedFloat<f64>)
Rational((i64, i64))
BigInt(BigInt)
BigDec(BigDecimal)
Char(char)
Bool(bool)
Nil
Trait Implementations§
impl<'e> Eq for NodeKind<'e>
Source§impl<'e> Ord for NodeKind<'e>
impl<'e> Ord for NodeKind<'e>
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'e> PartialEq for NodeKind<'e>
impl<'e> PartialEq for NodeKind<'e>
Source§impl<'e> PartialOrd for NodeKind<'e>
impl<'e> PartialOrd for NodeKind<'e>
impl<'e> StructuralPartialEq for NodeKind<'e>
Auto Trait Implementations§
impl<'e> Freeze for NodeKind<'e>
impl<'e> RefUnwindSafe for NodeKind<'e>
impl<'e> Send for NodeKind<'e>
impl<'e> Sync for NodeKind<'e>
impl<'e> Unpin for NodeKind<'e>
impl<'e> UnsafeUnpin for NodeKind<'e>
impl<'e> UnwindSafe for NodeKind<'e>
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