Skip to main content

ReadAt

Trait ReadAt 

Source
pub trait ReadAt {
    // Required method
    fn read_at(
        &self,
        range: Range<usize>,
    ) -> Result<impl AsRef<[u8]>, StfsError>;
}

Required Methods§

Source

fn read_at(&self, range: Range<usize>) -> Result<impl AsRef<[u8]>, StfsError>

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.

Implementations on Foreign Types§

Source§

impl ReadAt for Vec<u8>

Source§

fn read_at(&self, range: Range<usize>) -> Result<impl AsRef<[u8]>, StfsError>

Implementors§

Source§

impl<'a> ReadAt for SliceReader<'a>