pub trait Pack {
type File: File;
// Required method
fn get_file_by_path(&self, path: &str) -> Option<&Self::File>;
}Expand description
Trait representing Pack, a container for files identified by path.
Most users will use PackArchived implementation, returned by crate::loader::load. This trait is also implemented for non-archived Pack_, mostly for testing purposes.