pub struct Version {
pub major: u32,
pub minor: u32,
pub patch: u32,
}Expand description
A three-part version, compared numerically.
Deliberately not a semver dependency: these CLIs report a plain dotted
triple inside prose (“codex-cli 0.145.0”, “2.1.205 (Claude Code)”), none of
them publishes pre-release or build metadata here, and a whole crate to
compare three integers is not worth the graph.
Fields§
§major: u32Breaking-change component.
minor: u32Feature component.
patch: u32Fix component.
Implementations§
Trait Implementations§
impl Copy for Version
impl Eq for Version
Source§impl Ord for Version
impl Ord for Version
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Version
impl PartialOrd 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 UnsafeUnpin 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