pub enum Archive {
OnMemory(OnMemoryArchive),
FileStreaming(FileStreamingArchive<PlatformNativeFileReader>),
}Variants§
OnMemory(OnMemoryArchive)
FileStreaming(FileStreamingArchive<PlatformNativeFileReader>)
Implementations§
Source§impl Archive
impl Archive
Sourcepub fn new(
blob: PlatformNativeFileReader,
check_integrity: bool,
) -> Result<Self, ArchiveReadError>
pub fn new( blob: PlatformNativeFileReader, check_integrity: bool, ) -> Result<Self, ArchiveReadError>
Creates a new archive reader from a platform-specific blob reader.
pub fn list_entry(&self, callback: impl FnMut(AssetNameRef<'_>))
pub fn find_entry(&self, name: &str, ext: &str) -> Option<AssetEntryHeadingPair>
pub fn read_bin<'a>( &'a self, heading: AssetEntryHeadingPair, ) -> ArchiveBinReader<'a, PlatformNativeFileReader> ⓘ
Auto Trait Implementations§
impl !Freeze for Archive
impl RefUnwindSafe for Archive
impl Send for Archive
impl Sync for Archive
impl Unpin for Archive
impl UnsafeUnpin for Archive
impl UnwindSafe for Archive
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