Re-exports§
pub use edn::Error as EdnError;
pub use edn::Set;
pub use edn::Edn;
pub use edn::List;
pub use edn::Map;
pub use edn::Vector;
pub use serialize::Serialize;
Modules§
- Edn type implementation
- Serialization module for most possible types. Tuples are limited between
(A, B)
and(A, B, C, D, E, F)
, any other tuple needs to be implemented by thetrait Serialize
. This module requires#[macro_use]
forstructs
.
Macros§
- Macro to parse
EDN
into Rust Spec - Creates a
HashMap
from a seq of$key => $value,
hmap!{a => "b", c => "d"}
- Creates a
HashSet
from a seq of$x,
set!{1, 2, 3, 4}
- Creates a
BTreeMap
from a seq of$key => $value,
map!{a => "b", c => "d"}
- Creates a
BTreeSet
from a seq of$x,
set!{1, 2, 3, 4}
Traits§
- public trait to be used to
Deserialize
structs.
Functions§
from_edn
deserializes an EDN type into aT
type that implementsDeserialize
. Response isResult<T, EdnError>
from_str
deserializes an EDN String into typeT
that implementsDeserialize
. Response isResult<T, EdnError>
- Function for converting Rust types into EDN Strings. For it to work, the type must implement the Serialize trait. Use
#[derive(Serialize)]
fromedn-derive
crate.