pub trait Persons {
    type PersonIds<'a>: GetIndex<Output = u32>
       where Self: 'a;

    // Required methods
    fn author_id(&self) -> Self::PersonIds<'_>;
    fn committer_id(&self) -> Self::PersonIds<'_>;
}
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) -> Self::PersonIds<'_>

source

fn committer_id(&self) -> Self::PersonIds<'_>

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Persons for MappedPersons

§

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

source§

impl Persons for VecPersons

§

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