11//! # Version
22//!
33//! Contains the version API.
4- //!
5- //! ## License
6- //!
7- //! > Copyright (C) The Neotron Developers, 2019-2022
8- //! >
9- //! > This program is free software: you can redistribute it and/or modify
10- //! > it under the terms of the GNU General Public License as published by
11- //! > the Free Software Foundation, either version 3 of the License, or
12- //! > at your option) any later version.
13- //! >
14- //! > This program is distributed in the hope that it will be useful,
15- //! > but WITHOUT ANY WARRANTY; without even the implied warranty of
16- //! > MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17- //! > GNU General Public License for more details.
18- //! >
19- //! > You should have received a copy of the GNU General Public License
20- //! > along with this program. If not, see <https://www.gnu.org/licenses/>.
4+
5+ // Copyright (C) The Neotron Developers, 2019-2022
6+ //
7+ // This program is free software: you can redistribute it and/or modify
8+ // it under the terms of the GNU General Public License as published by
9+ // the Free Software Foundation, either version 3 of the License, or
10+ // at your option) any later version.
11+ //
12+ // This program is distributed in the hope that it will be useful,
13+ // but WITHOUT ANY WARRANTY; without even the implied warranty of
14+ // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+ // GNU General Public License for more details.
16+ //
17+ // You should have received a copy of the GNU General Public License
18+ // along with this program. If not, see <https://www.gnu.org/licenses/>.
19+
20+ // ============================================================================
21+ // Imports
22+ // ============================================================================
23+
24+ // None
25+
26+ // ============================================================================
27+ // Constants
28+ // ============================================================================
29+
30+ // None
31+
32+ // ============================================================================
33+ // Types
34+ // ============================================================================
2135
2236/// Describes a semantic version.
2337///
2741#[ derive( Copy , Clone , Debug ) ]
2842pub struct Version ( pub u32 ) ;
2943
44+ // ============================================================================
45+ // Impls
46+ // ============================================================================
47+
3048impl Version {
3149 /// Create a new Version.
3250 pub const fn new ( major : u8 , minor : u8 , patch : u8 ) -> Version {
@@ -49,4 +67,6 @@ impl Version {
4967 }
5068}
5169
52- // End of file
70+ // ============================================================================
71+ // End of File
72+ // ============================================================================
0 commit comments