pub trait RandomAccessRead: Send + Sync {
// Required methods
fn len(&self) -> u64;
fn read_at(&self, offset: u64, buf: &mut [u8]) -> Result<usize, Error>;
// Provided method
fn is_empty(&self) -> bool { ... }
}Expand description
Random-access byte source for opening a crate::Package without copying the entire ZIP
archive into memory (for example, backed by a browser Blob/File.slice() or OPFS
FileSystemSyncAccessHandle).
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".