aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-11-18 10:18:04 -0600
committerAlex Crichton <alex@alexcrichton.com>2014-11-18 10:18:04 -0600
commit4bb575fdaf5fd88580abbac6fdb057ef76d32251 (patch)
treecb8fc875c37fcff679bf3d99a594ffb3f2eb63a1 /src/lib.rs
parentc5284ffc32585401f01aa925ebd6d3fe0679e7c6 (diff)
parentbfcfa89e9566ef179fae47e62a8f8290ff3a3980 (diff)
downloadmilf-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.rs14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 2e27dea..df6abbc 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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;