Trait swh_graph::properties::Timestamps
source · pub trait Timestamps {
type Timestamps<'a>: GetIndex<Output = i64> + 'a
where Self: 'a;
type Offsets<'a>: GetIndex<Output = i16> + 'a
where Self: 'a;
// Required methods
fn author_timestamp(&self) -> Self::Timestamps<'_>;
fn author_timestamp_offset(&self) -> Self::Offsets<'_>;
fn committer_timestamp(&self) -> Self::Timestamps<'_>;
fn committer_timestamp_offset(&self) -> Self::Offsets<'_>;
}
Expand description
Trait for backend storage of timestamp properties (either in-memory or memory-mapped)
Required Associated Types§
type Timestamps<'a>: GetIndex<Output = i64> + 'a where Self: 'a
type Offsets<'a>: GetIndex<Output = i16> + 'a where Self: 'a
Required Methods§
fn committer_timestamp(&self) -> Self::Timestamps<'_>
fn committer_timestamp_offset(&self) -> Self::Offsets<'_>
Object Safety§
This trait is not object safe.