Trait BlockAccessorExt

Source
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§

Source

fn maybe_block_at<K: BlockKind>( &self, index: BlockIndex, ) -> Option<Block<&Self, K>>

Source

fn block_at_unchecked<K: BlockKind>(&self, index: BlockIndex) -> Block<&Self, K>

Source

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.

Implementors§

Source§

impl<T> BlockAccessorExt for T
where T: ReadBytes,