pub struct Loc {
pub patch: bool,
pub chunk: u32,
pub archive: u16,
}Expand description
Where a file lives: (patch folder or base game, install chunk, archive number).
Fields§
§patch: boolWhether the file is in a Patch folder (the added or replaced files) rather than the base game: bits 48..56 of the stored identifier, 1 for the Patch folder and 0 for the base game.
chunk: u32Install chunk number: bits 16..48 of the stored identifier.
archive: u16Archive number within the chunk: the low 16 bits of the stored identifier.
Implementations§
Trait Implementations§
impl Copy for Loc
impl Eq for Loc
Source§impl Ord for Loc
impl Ord for Loc
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Loc
impl PartialOrd for Loc
impl StructuralPartialEq for Loc
Auto Trait Implementations§
impl Freeze for Loc
impl RefUnwindSafe for Loc
impl Send for Loc
impl Sync for Loc
impl Unpin for Loc
impl UnsafeUnpin for Loc
impl UnwindSafe for Loc
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