pub struct FileEntry {
pub name: RawStr,
pub file: File,
pub is_dependency: bool,
}Expand description
One entry of Environment::files: UnityPy’s env.files[name], with
the file’s is_dependency flag.
Fields§
§name: RawStrThe key: the source’s name for a caller’s load, the name asked for a
resource fallback’s, the resolved source’s name for find_file’s
(UnityPy keys the joined path).
file: FileThe file.
is_dependency: boolTrue for a find_file load with is_dependency
(Environment::objects and Environment::container skip it),
false for every other, and for a raw reader, to which UnityPy’s
parse_file gives no is_dependency (getattr(f, "is_dependency", False) reads it false).
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for FileEntry
impl !RefUnwindSafe for FileEntry
impl !UnwindSafe for FileEntry
impl Forget for FileEntry
impl Move for FileEntry
impl Send for FileEntry
impl Sync for FileEntry
impl Unpin for FileEntry
impl UnsafeUnpin for FileEntry
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