pub struct GameSchemaVersion(/* private fields */);Expand description
Game-specific telemetry schema version from the initialization parameters.
This is separate from both TelemetryApiVersion and the public game patch
displayed to players. SCS treats a schema-major change as potentially
incompatible while schema-minor changes describe compatible additions or
semantic corrections.
Implementations§
Source§impl GameSchemaVersion
impl GameSchemaVersion
Sourcepub const fn new(major: u32, minor: u32) -> Self
pub const fn new(major: u32, minor: u32) -> Self
Creates a packed game-schema version from its two components.
Sourcepub const fn from_raw(raw: u32) -> Self
pub const fn from_raw(raw: u32) -> Self
Wraps the packed version supplied in SCS initialization parameters.
Trait Implementations§
Source§impl Clone for GameSchemaVersion
impl Clone for GameSchemaVersion
Source§fn clone(&self) -> GameSchemaVersion
fn clone(&self) -> GameSchemaVersion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GameSchemaVersion
Source§impl Debug for GameSchemaVersion
impl Debug for GameSchemaVersion
Source§impl Display for GameSchemaVersion
impl Display for GameSchemaVersion
impl Eq for GameSchemaVersion
Source§impl Hash for GameSchemaVersion
impl Hash for GameSchemaVersion
Source§impl Ord for GameSchemaVersion
impl Ord for GameSchemaVersion
Source§fn cmp(&self, other: &GameSchemaVersion) -> Ordering
fn cmp(&self, other: &GameSchemaVersion) -> Ordering
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 PartialEq for GameSchemaVersion
impl PartialEq for GameSchemaVersion
Source§impl PartialOrd for GameSchemaVersion
impl PartialOrd for GameSchemaVersion
impl StructuralPartialEq for GameSchemaVersion
Auto Trait Implementations§
impl Freeze for GameSchemaVersion
impl RefUnwindSafe for GameSchemaVersion
impl Send for GameSchemaVersion
impl Sync for GameSchemaVersion
impl Unpin for GameSchemaVersion
impl UnsafeUnpin for GameSchemaVersion
impl UnwindSafe for GameSchemaVersion
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