#[repr(u8)]pub enum StorageSlot {
Show 32 variants
UserSettings = 0,
AccountData = 1,
PlayerState1 = 2,
PlayerState2 = 3,
PlayerState3 = 4,
PlayerState4 = 5,
PlayerState5 = 6,
PlayerState6 = 7,
PlayerState7 = 8,
PlayerState8 = 9,
PlayerState9 = 10,
PlayerState10 = 11,
PlayerState11 = 12,
PlayerState12 = 13,
PlayerState13 = 14,
PlayerState14 = 15,
PlayerState15 = 16,
PlayerState16 = 17,
PlayerState17 = 18,
PlayerState18 = 19,
PlayerState19 = 20,
PlayerState20 = 21,
PlayerState21 = 22,
PlayerState22 = 23,
PlayerState23 = 24,
PlayerState24 = 25,
PlayerState25 = 26,
PlayerState26 = 27,
PlayerState27 = 28,
PlayerState28 = 29,
PlayerState29 = 30,
PlayerState30 = 31,
}Expand description
Storage slot enum values used for XXTEA key derivation.
Each value corresponds to a file index. The numeric value is XOR’d with a constant during key derivation.
Variants§
UserSettings = 0
AccountData = 1
PlayerState1 = 2
PlayerState2 = 3
PlayerState3 = 4
PlayerState4 = 5
PlayerState5 = 6
PlayerState6 = 7
PlayerState7 = 8
PlayerState8 = 9
PlayerState9 = 10
PlayerState10 = 11
PlayerState11 = 12
PlayerState12 = 13
PlayerState13 = 14
PlayerState14 = 15
PlayerState15 = 16
PlayerState16 = 17
PlayerState17 = 18
PlayerState18 = 19
PlayerState19 = 20
PlayerState20 = 21
PlayerState21 = 22
PlayerState22 = 23
PlayerState23 = 24
PlayerState24 = 25
PlayerState25 = 26
PlayerState26 = 27
PlayerState27 = 28
PlayerState28 = 29
PlayerState29 = 30
PlayerState30 = 31
Implementations§
Source§impl StorageSlot
impl StorageSlot
Sourcepub const ALL: [StorageSlot; 32]
pub const ALL: [StorageSlot; 32]
All valid slot values.
Sourcepub fn is_account(&self) -> bool
pub fn is_account(&self) -> bool
Whether this slot represents account-level data (not a save slot).
Trait Implementations§
Source§impl Clone for StorageSlot
impl Clone for StorageSlot
Source§fn clone(&self) -> StorageSlot
fn clone(&self) -> StorageSlot
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 StorageSlot
impl Debug for StorageSlot
Source§impl PartialEq for StorageSlot
impl PartialEq for StorageSlot
impl Copy for StorageSlot
impl Eq for StorageSlot
impl StructuralPartialEq for StorageSlot
Auto Trait Implementations§
impl Freeze for StorageSlot
impl RefUnwindSafe for StorageSlot
impl Send for StorageSlot
impl Sync for StorageSlot
impl Unpin for StorageSlot
impl UnsafeUnpin for StorageSlot
impl UnwindSafe for StorageSlot
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