diff options
author | Alex Crichton <alex@alexcrichton.com> | 2014-11-18 10:18:04 -0600 |
---|---|---|
committer | Alex Crichton <alex@alexcrichton.com> | 2014-11-18 10:18:04 -0600 |
commit | 4bb575fdaf5fd88580abbac6fdb057ef76d32251 (patch) | |
tree | cb8fc875c37fcff679bf3d99a594ffb3f2eb63a1 /src/lib.rs | |
parent | c5284ffc32585401f01aa925ebd6d3fe0679e7c6 (diff) | |
parent | bfcfa89e9566ef179fae47e62a8f8290ff3a3980 (diff) | |
download | milf-rs-4bb575fdaf5fd88580abbac6fdb057ef76d32251.tar.gz milf-rs-4bb575fdaf5fd88580abbac6fdb057ef76d32251.zip |
Merge pull request #31 from vberger/master
Update to namespaced enum variants.
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -50,11 +50,15 @@ use std::string; pub use parser::{Parser, ParserError}; pub use serialization::{Encoder, encode, encode_str}; pub use serialization::{Decoder, decode, decode_str}; -pub use serialization::{Error, NeedsKey, NoValue}; -pub use serialization::{InvalidMapKeyLocation, InvalidMapKeyType}; -pub use serialization::{DecodeError, ApplicationError, ExpectedField}; -pub use serialization::{ExpectedMapElement, ExpectedMapKey, NoEnumVariants}; -pub use serialization::{ExpectedType, NilTooLong}; +pub use serialization::Error; +pub use serialization::Error::{NeedsKey, NoValue}; +pub use serialization::Error::{InvalidMapKeyLocation, InvalidMapKeyType}; +pub use serialization::{DecodeError, DecodeErrorKind}; +pub use serialization::DecodeErrorKind::{ApplicationError, ExpectedField}; +pub use serialization::DecodeErrorKind::{ExpectedMapElement, ExpectedMapKey, NoEnumVariants}; +pub use serialization::DecodeErrorKind::{ExpectedType, NilTooLong}; + +pub use Value::{String, Integer, Float, Boolean, Datetime, Array, Table}; mod parser; mod show; |