diff options
| author | Simon Sapin <simon.sapin@exyr.org> | 2018-04-05 17:09:28 +0200 |
|---|---|---|
| committer | Simon Sapin <simon.sapin@exyr.org> | 2018-04-12 00:13:43 +0200 |
| commit | 5807be7ccb2c14df9db87a54038221bbf5ae00fa (patch) | |
| tree | 9f929cd883f06c42c62d985cad4e06c9b683a066 /src/libcore/unicode/version.rs | |
| parent | f87d4a15a82a76e7510629173c366d084f2c02ca (diff) | |
| download | rust-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.rs | 27 |
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: (), +} |
