pub enum TargetFileKind {
Dat,
Index,
}Expand description
Which SqPack file kind a SqpkHeader targets.
Encoded as a single ASCII byte in the wire format:
b'D' → Dat, b'I' → Index.
Any other byte is rejected with a binrw::Error::Custom.
See SqpkHeader.cs in the XIVLauncher reference implementation.
Variants§
Trait Implementations§
Source§impl Clone for TargetFileKind
impl Clone for TargetFileKind
Source§fn clone(&self) -> TargetFileKind
fn clone(&self) -> TargetFileKind
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 TargetFileKind
impl Debug for TargetFileKind
Source§impl PartialEq for TargetFileKind
impl PartialEq for TargetFileKind
Source§fn eq(&self, other: &TargetFileKind) -> bool
fn eq(&self, other: &TargetFileKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for TargetFileKind
impl Eq for TargetFileKind
impl StructuralPartialEq for TargetFileKind
Auto Trait Implementations§
impl Freeze for TargetFileKind
impl RefUnwindSafe for TargetFileKind
impl Send for TargetFileKind
impl Sync for TargetFileKind
impl Unpin for TargetFileKind
impl UnsafeUnpin for TargetFileKind
impl UnwindSafe for TargetFileKind
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