From 5549f1bba54a17e82e701b6c37b18999f66d43e8 Mon Sep 17 00:00:00 2001 From: Sebastian Schmidt Date: Wed, 20 Mar 2019 16:18:52 +0200 Subject: [PATCH] Make internal value type aliases for float and int public --- CHANGELOG.md | 2 ++ src/value/mod.rs | 3 +++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 222cf48..bf3bbfd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ ### Added + * Made internal alias `IntType` and `FloatType` used by the `Value` enum public + ### Removed * Removed integration tests from shipped crate diff --git a/src/value/mod.rs b/src/value/mod.rs index 3c7f50e..5811fee 100644 --- a/src/value/mod.rs +++ b/src/value/mod.rs @@ -2,7 +2,10 @@ use error::Error; mod display; +/// The type used to represent integers in `Value::Int`. pub type IntType = i64; + +/// The type used to represent floats in `Value::Float`. pub type FloatType = f64; /// The value type used by the parser.