Trait OptPersons

Source
pub trait OptPersons: MaybePersons + PropertiesBackend {
    type PersonIds<'a>: GetIndex<Output = u32>
       where Self: 'a;

    // Required methods
    fn author_id(&self) -> PropertiesResult<'_, Self::PersonIds<'_>, Self>;
    fn committer_id(&self) -> PropertiesResult<'_, Self::PersonIds<'_>, Self>;
}
Expand description

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

Required Associated Types§

Source

type PersonIds<'a>: GetIndex<Output = u32> where Self: 'a

Required Methods§

Source

fn author_id(&self) -> PropertiesResult<'_, Self::PersonIds<'_>, Self>

Source

fn committer_id(&self) -> PropertiesResult<'_, Self::PersonIds<'_>, 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 OptPersons for MappedPersons

Source§

type PersonIds<'a> = &'a NumberMmap<BigEndian, u32, Mmap> where Self: 'a

Source§

impl OptPersons for OptMappedPersons

Source§

type PersonIds<'a> = &'a NumberMmap<BigEndian, u32, Mmap> where Self: 'a

Source§

impl OptPersons for VecPersons

Source§

type PersonIds<'a> = &'a [u32] where Self: 'a