pub struct PathList {
pub entries: HashMap<RuntimeResourceID, Option<ResourceID>>,
}
Expand description
A rainbow table of hashed paths with associated paths.
Fields§
§entries: HashMap<RuntimeResourceID, Option<ResourceID>>
Implementations§
Source§impl PathList
impl PathList
Sourcepub fn parse_into<P: AsRef<Path>>(
&mut self,
path: P,
) -> Result<&Self, PathListError>
pub fn parse_into<P: AsRef<Path>>( &mut self, path: P, ) -> Result<&Self, PathListError>
Parses a file into the PathList.
Example of an input file:
#comments will be ingored!
00546F0BD4E80484.GFXI,[assembly:/any/path/here/file.jpg].pc_gfx
0023456789ABCDEF.WWEM, this_will_fail_the_md5_validation
003456789ABCDEF0.FXAS,[assembly:/lorem/ipsum/dolor_sit/amet/ai/consectetur/adipisicing.animset].pc_animset
....
§Arguments
path
- The path to the file to parse.
pub fn get(&self, key: &RuntimeResourceID) -> Option<&ResourceID>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PathList
impl RefUnwindSafe for PathList
impl Send for PathList
impl Sync for PathList
impl Unpin for PathList
impl UnwindSafe for PathList
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> 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