pub trait Contents {
    type Data<'a>: GetIndex<Output = u64> + 'a
       where Self: 'a;

    // Required methods
    fn is_skipped_content(&self) -> Self::Data<'_>;
    fn content_length(&self) -> Self::Data<'_>;
}
Expand description

Trait for backend storage of content properties (either in-memory or memory-mapped)

Required Associated Types§

source

type Data<'a>: GetIndex<Output = u64> + 'a where Self: 'a

Required Methods§

source

fn is_skipped_content(&self) -> Self::Data<'_>

source

fn content_length(&self) -> Self::Data<'_>

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Contents for MappedContents

§

type Data<'a> = &'a NumberMmap<BigEndian, u64, Mmap> where Self: 'a

source§

impl Contents for VecContents

§

type Data<'a> = &'a [u64] where Self: 'a