pub struct EngineVersion {
pub major: u16,
pub minor: u16,
pub patch: u16,
pub pre: u8,
pub build: u8,
}Expand description
Packed 8-byte semantic version of the producing engine.
Fields§
§major: u16§minor: u16§patch: u16§pre: u8§build: u8Implementations§
Source§impl EngineVersion
impl EngineVersion
Sourcepub fn current() -> Self
pub fn current() -> Self
Parse the crate’s CARGO_PKG_VERSION into an EngineVersion.
Sourcepub fn from_bytes(b: &[u8; 8]) -> Self
pub fn from_bytes(b: &[u8; 8]) -> Self
Deserialize from 8 bytes.
Sourcepub fn to_string_repr(self) -> String
pub fn to_string_repr(self) -> String
Format as a human-readable version string.
Trait Implementations§
Source§impl Clone for EngineVersion
impl Clone for EngineVersion
Source§fn clone(&self) -> EngineVersion
fn clone(&self) -> EngineVersion
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EngineVersion
impl Debug for EngineVersion
Source§impl PartialEq for EngineVersion
impl PartialEq for EngineVersion
impl Copy for EngineVersion
impl Eq for EngineVersion
impl StructuralPartialEq for EngineVersion
Auto Trait Implementations§
impl Freeze for EngineVersion
impl RefUnwindSafe for EngineVersion
impl Send for EngineVersion
impl Sync for EngineVersion
impl Unpin for EngineVersion
impl UnsafeUnpin for EngineVersion
impl UnwindSafe for EngineVersion
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more