pub struct RootFile { /* private fields */ }Expand description
Parsed root file with FileDataID -> CKey lookup.
Implementations§
Source§impl RootFile
impl RootFile
Sourcepub fn find_by_fdid(&self, fdid: u32, locale: LocaleFlags) -> Option<&RootEntry>
pub fn find_by_fdid(&self, fdid: u32, locale: LocaleFlags) -> Option<&RootEntry>
Find the first entry for a FileDataID that matches the given locale filter.
Sourcepub fn iter_all(&self) -> impl Iterator<Item = (u32, &RootEntry)>
pub fn iter_all(&self) -> impl Iterator<Item = (u32, &RootEntry)>
Iterate all (FileDataID, entry) pairs.
Sourcepub fn format(&self) -> RootFormat
pub fn format(&self) -> RootFormat
The detected format of this root file.
Sourcepub fn fdid_count(&self) -> usize
pub fn fdid_count(&self) -> usize
Number of unique FileDataIDs.
Auto Trait Implementations§
impl Freeze for RootFile
impl RefUnwindSafe for RootFile
impl Send for RootFile
impl Sync for RootFile
impl Unpin for RootFile
impl UnsafeUnpin for RootFile
impl UnwindSafe for RootFile
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> 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