pub struct Version {
pub major: u8,
pub minor: u8,
pub patch: u8,
pub build: u16,
}
Expand description
WoW
client version representation.
Will sort correctly with respect to expansions and patches.
Fields§
§major: u8
Expansion version. 0 for alpha/beta, 1 for vanilla, 2 for TBC, etc.
minor: u8
Minor version.
patch: u8
Patch version.
build: u16
Build version. 5875 for 1.12.1 and 12340 for 3.3.5 for example.
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