pub enum Edn {
Nil,
Bool(bool),
Long(i64),
Double(TotalF64),
Str(String),
Keyword(Keyword),
Symbol(String),
List(Vec<Edn>),
Vector(Vec<Edn>),
Map(Vec<(Edn, Edn)>),
Set(Vec<Edn>),
Tagged(String, Box<Edn>),
}Expand description
An EDN value with total ordering (maps/sets are normalized sorted).
Variants§
Nil
nil.
Bool(bool)
Boolean.
Long(i64)
Integer.
Double(TotalF64)
Floating point (total order).
Str(String)
String.
Keyword(Keyword)
Keyword.
Symbol(String)
Symbol, printed verbatim.
List(Vec<Edn>)
List ( … ).
Vector(Vec<Edn>)
Vector [ … ].
Map(Vec<(Edn, Edn)>)
Map { … } as sorted key/value pairs.
Set(Vec<Edn>)
Set #{ … } as sorted, deduplicated elements.
Tagged(String, Box<Edn>)
Tagged element #tag value.
Implementations§
Trait Implementations§
impl Eq for Edn
Source§impl Ord for Edn
impl Ord for Edn
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 PartialOrd for Edn
impl PartialOrd for Edn
impl StructuralPartialEq for Edn
Auto Trait Implementations§
impl Freeze for Edn
impl RefUnwindSafe for Edn
impl Send for Edn
impl Sync for Edn
impl Unpin for Edn
impl UnsafeUnpin for Edn
impl UnwindSafe for Edn
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