pub trait ArchiveReadAt:
Send
+ Sync
+ 'static {
// Required methods
fn len(&self) -> Result<u64, FormatError>;
fn read_exact_at(
&self,
offset: u64,
buf: &mut [u8],
) -> Result<(), FormatError>;
// Provided method
fn is_empty(&self) -> Result<bool, FormatError> { ... }
}Required Methods§
fn len(&self) -> Result<u64, FormatError>
fn read_exact_at(&self, offset: u64, buf: &mut [u8]) -> Result<(), FormatError>
Provided Methods§
fn is_empty(&self) -> Result<bool, FormatError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".