Trait OptContents

Source
pub trait OptContents: MaybeContents + PropertiesBackend {
    type Data<'a>: GetIndex<Output = u64> + 'a
       where Self: 'a;

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

Trait implemented by all implementors of MaybeContents but NoContents

Required Associated Types§

Source

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

Required Methods§

Source

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

Source

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

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

Source§

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

Source§

impl OptContents for OptMappedContents

Source§

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

Source§

impl OptContents for VecContents

Source§

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