Trait Contents

Source
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<'_>

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 Contents for MappedContents

Source§

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

Source§

impl Contents for VecContents

Source§

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