2019-09-16 23:58:32 +00:00
|
|
|
pub mod de;
|
2020-07-08 12:34:25 +00:00
|
|
|
pub mod magic;
|
|
|
|
pub mod packed;
|
2020-05-25 11:42:06 +00:00
|
|
|
pub mod reader;
|
2019-09-16 23:58:32 +00:00
|
|
|
pub mod ser;
|
2020-06-15 10:48:53 +00:00
|
|
|
pub mod signed_integer;
|
2021-03-12 10:04:23 +00:00
|
|
|
pub mod repr;
|
2020-05-23 20:33:02 +00:00
|
|
|
pub mod writer;
|
2019-09-16 23:58:32 +00:00
|
|
|
|
|
|
|
pub use de::Deserializer;
|
|
|
|
pub use de::from_value;
|
2020-07-08 12:34:25 +00:00
|
|
|
pub use packed::PackedReader;
|
|
|
|
pub use packed::PackedWriter;
|
2020-07-08 13:42:58 +00:00
|
|
|
pub use reader::ConfiguredReader;
|
2020-05-25 11:42:06 +00:00
|
|
|
pub use reader::Reader;
|
2021-03-12 10:04:23 +00:00
|
|
|
pub use repr::AnnotatedValue;
|
|
|
|
pub use repr::ArcValue;
|
|
|
|
pub use repr::Domain;
|
2021-06-30 08:10:38 +00:00
|
|
|
pub use repr::Double;
|
|
|
|
pub use repr::Float;
|
2021-03-12 10:04:23 +00:00
|
|
|
pub use repr::IOValue;
|
|
|
|
pub use repr::Map;
|
|
|
|
pub use repr::NestedValue;
|
|
|
|
pub use repr::PlainValue;
|
|
|
|
pub use repr::RcValue;
|
2021-06-28 14:35:45 +00:00
|
|
|
pub use repr::Record;
|
2021-03-12 10:04:23 +00:00
|
|
|
pub use repr::Set;
|
|
|
|
pub use repr::UnwrappedIOValue;
|
|
|
|
pub use repr::Value;
|
2019-09-16 23:58:32 +00:00
|
|
|
pub use ser::Serializer;
|
|
|
|
pub use ser::to_value;
|
2020-05-25 11:42:06 +00:00
|
|
|
pub use writer::Writer;
|
2019-10-12 14:40:35 +00:00
|
|
|
|
2021-03-12 10:04:23 +00:00
|
|
|
pub use repr::FALSE;
|
|
|
|
pub use repr::TRUE;
|
|
|
|
pub use repr::EMPTY_SEQ;
|
2020-05-27 07:04:55 +00:00
|
|
|
|
2021-06-30 07:52:16 +00:00
|
|
|
pub type IOResult<T> = std::result::Result<T, std::io::Error>;
|
|
|
|
|
2019-10-12 20:50:24 +00:00
|
|
|
pub fn invert_map<A, B>(m: &Map<A, B>) -> Map<B, A>
|
2019-09-17 08:57:44 +00:00
|
|
|
where A: Clone, B: Clone + Ord
|
|
|
|
{
|
2021-03-12 09:59:28 +00:00
|
|
|
m.iter().map(|(a, b)| (b.clone(), a.clone())).collect()
|
2019-09-17 08:57:44 +00:00
|
|
|
}
|