Trait rc_zip::reader::sync::HasCursor

source ·
pub trait HasCursor {
    type Cursor<'a>: Read + 'a
       where Self: 'a;

    // Required method
    fn cursor_at(&self, offset: u64) -> Self::Cursor<'_>;
}
Expand description

A sliceable I/O resource: we can ask for a Read at a given offset.

Required Associated Types§

source

type Cursor<'a>: Read + 'a where Self: 'a

Required Methods§

source

fn cursor_at(&self, offset: u64) -> Self::Cursor<'_>

Returns a Read at the given offset.

Implementations on Foreign Types§

source§

impl HasCursor for File

§

type Cursor<'a> where Self: 'a = Cursor<&'a File>

source§

fn cursor_at(&self, offset: u64) -> Self::Cursor<'_>

source§

impl HasCursor for &[u8]

§

type Cursor<'a> where Self: 'a = &'a [u8]

source§

fn cursor_at(&self, offset: u64) -> Self::Cursor<'_>

source§

impl HasCursor for Vec<u8>

§

type Cursor<'a> where Self: 'a = &'a [u8]

source§

fn cursor_at(&self, offset: u64) -> Self::Cursor<'_>

Implementors§