pub trait BlockAccessorExt: ReadBytes + Sized {
// Provided methods
fn maybe_block_at<K: BlockKind>(
&self,
index: BlockIndex,
) -> Option<Block<&Self, K>> { ... }
fn block_at_unchecked<K: BlockKind>(
&self,
index: BlockIndex,
) -> Block<&Self, K> { ... }
fn block_at(&self, index: BlockIndex) -> Block<&Self, Unknown> { ... }
}
Provided Methods§
fn maybe_block_at<K: BlockKind>( &self, index: BlockIndex, ) -> Option<Block<&Self, K>>
fn block_at_unchecked<K: BlockKind>(&self, index: BlockIndex) -> Block<&Self, K>
fn block_at(&self, index: BlockIndex) -> Block<&Self, Unknown>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.