about summary refs log tree commit diff
path: root/src/libcore/unicode/version.rs
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2018-04-05 17:09:28 +0200
committerSimon Sapin <simon.sapin@exyr.org>2018-04-12 00:13:43 +0200
commit5807be7ccb2c14df9db87a54038221bbf5ae00fa (patch)
tree9f929cd883f06c42c62d985cad4e06c9b683a066 /src/libcore/unicode/version.rs
parentf87d4a15a82a76e7510629173c366d084f2c02ca (diff)
downloadrust-5807be7ccb2c14df9db87a54038221bbf5ae00fa.tar.gz
rust-5807be7ccb2c14df9db87a54038221bbf5ae00fa.zip
Move contents of libstd_unicode into libcore
Diffstat (limited to 'src/libcore/unicode/version.rs')
-rw-r--r--src/libcore/unicode/version.rs27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/libcore/unicode/version.rs b/src/libcore/unicode/version.rs
new file mode 100644
index 00000000000..d82a749d917
--- /dev/null
+++ b/src/libcore/unicode/version.rs
@@ -0,0 +1,27 @@
+// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
+/// Represents a Unicode Version.
+///
+/// See also: <http://www.unicode.org/versions/>
+#[derive(Clone, Copy, Debug, Eq, Ord, PartialEq, PartialOrd)]
+pub struct UnicodeVersion {
+    /// Major version.
+    pub major: u32,
+
+    /// Minor version.
+    pub minor: u32,
+
+    /// Micro (or Update) version.
+    pub micro: u32,
+
+    // Private field to keep struct expandable.
+    pub(crate) _priv: (),
+}