pub struct Version {
pub major: u32,
pub minor: u32,
}Expand description
Two-segment version number (MAJOR.MINOR)
Versions use a simple two-segment scheme where:
- MAJOR indicates breaking changes
- MINOR indicates compatible changes (features, fixes, improvements)
§Examples
use quillmark_core::version::Version;
use std::str::FromStr;
let v = Version::new(2, 1);
assert_eq!(v.to_string(), "2.1");
let parsed = Version::from_str("2.1").unwrap();
assert_eq!(parsed, v);Fields§
§major: u32Major version number (breaking changes)
minor: u32Minor version number (compatible changes)
Implementations§
Trait Implementations§
Source§impl Ord for Version
impl Ord for Version
Source§impl PartialOrd for Version
impl PartialOrd for Version
impl Copy for Version
impl Eq for Version
impl StructuralPartialEq for Version
Auto Trait Implementations§
impl Freeze for Version
impl RefUnwindSafe for Version
impl Send for Version
impl Sync for Version
impl Unpin for Version
impl UnwindSafe for Version
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.