pub trait BlockIOLayout {
type Error: Debug;
type BlockSize: BlockSize;
// Required methods
fn block_size(&self) -> Self::BlockSize;
fn num_blocks(&self) -> u64;
}Required Associated Types§
Required Methods§
fn block_size(&self) -> Self::BlockSize
fn num_blocks(&self) -> u64
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".