diff options
| author | Clar Charr <clar@charr.xyz> | 2017-12-31 02:08:15 -0500 |
|---|---|---|
| committer | Clar Charr <clar@charr.xyz> | 2018-01-02 22:51:22 -0500 |
| commit | b4b3ddd59e2a041646f7b300ad727a5d4f48a488 (patch) | |
| tree | fba5ba31c8811e1cdec7ca5efa28f2e1048bedea /src/libstd_unicode/version.rs | |
| parent | b65f0bedd2f22d9661ecb7092f07746dc2ccfb0d (diff) | |
Move static code outside of unciode.py.
Diffstat (limited to 'src/libstd_unicode/version.rs')
| -rw-r--r-- | src/libstd_unicode/version.rs | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/libstd_unicode/version.rs b/src/libstd_unicode/version.rs new file mode 100644 index 00000000000..d82a749d917 --- /dev/null +++ b/src/libstd_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: (), +} |
