Trait CookieCursor

Source
pub trait CookieCursor {
    type Cursor<'a>: Read + 'a
       where Self: 'a;

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

Required Associated Types§

Source

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

Required Methods§

Source

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

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 CookieCursor for &[u8]

Source§

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

Source§

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

Source§

impl CookieCursor for Vec<u8>

Source§

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

Source§

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

Source§

impl CookieCursor for File

Source§

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

Source§

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

Implementors§