pub enum IndexCommand {
Add,
Delete,
}Expand description
Sub-command byte of a SQPK I (Index) chunk.
Determines whether the index entry described by the containing SqpkIndex
should be added to or removed from the SqPack index file.
Encoded as a single ASCII byte: b'A' → Add, b'D' → Delete.
Any other byte is rejected with a binrw::Error::Custom.
See SqpkIndex.cs in the XIVLauncher reference implementation.
Variants§
Add
Add or update an index entry for the described asset.
Delete
Remove the index entry for the described asset.
Trait Implementations§
Source§impl Clone for IndexCommand
impl Clone for IndexCommand
Source§fn clone(&self) -> IndexCommand
fn clone(&self) -> IndexCommand
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 moreSource§impl Debug for IndexCommand
impl Debug for IndexCommand
Source§impl PartialEq for IndexCommand
impl PartialEq for IndexCommand
Source§fn eq(&self, other: &IndexCommand) -> bool
fn eq(&self, other: &IndexCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for IndexCommand
impl Eq for IndexCommand
impl StructuralPartialEq for IndexCommand
Auto Trait Implementations§
impl Freeze for IndexCommand
impl RefUnwindSafe for IndexCommand
impl Send for IndexCommand
impl Sync for IndexCommand
impl Unpin for IndexCommand
impl UnsafeUnpin for IndexCommand
impl UnwindSafe for IndexCommand
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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