pub trait Source: Send + Sync {
// Required methods
fn len(&self) -> u64;
fn read_at(&self, offset: u64, buf: &mut [u8]) -> Result<()>;
// Provided methods
fn is_empty(&self) -> bool { ... }
fn as_bytes(&self) -> Option<&[u8]> { ... }
}Expand description
Random access to the bytes of an archive.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".