#[non_exhaustive]pub enum Platform {
Win32,
Ps3,
Ps4,
Unknown(u16),
}Expand description
Target platform for SqPack file path resolution.
Set by ApplyContext::with_platform or overridden when a SqpkTargetInfo
chunk is applied. Unknown(id) preserves an unrecognised platform ID so
newer patch files do not fail parsing; path resolution falls back to the
win32 layout for unknown variants.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Win32
Windows / PC client (win32 path suffix).
Ps3
PlayStation 3 client (ps3 path suffix).
Ps4
PlayStation 4 client (ps4 path suffix).
Unknown(u16)
Unrecognised platform ID from a TargetInfo chunk; preserved so
newer patch files do not fail parsing on unknown platforms.
Trait Implementations§
impl Copy for Platform
impl Eq for Platform
impl StructuralPartialEq for Platform
Auto Trait Implementations§
impl Freeze for Platform
impl RefUnwindSafe for Platform
impl Send for Platform
impl Sync for Platform
impl Unpin for Platform
impl UnsafeUnpin for Platform
impl UnwindSafe for Platform
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