Trait swh_graph::properties::Strings

source ·
pub trait Strings {
    type Offsets<'a>: GetIndex<Output = u64> + 'a
       where Self: 'a;

    // Required methods
    fn message(&self) -> &[u8] ;
    fn message_offset(&self) -> Self::Offsets<'_>;
    fn tag_name(&self) -> &[u8] ;
    fn tag_name_offset(&self) -> Self::Offsets<'_>;
}
Expand description

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

Required Associated Types§

source

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

Required Methods§

source

fn message(&self) -> &[u8]

source

fn message_offset(&self) -> Self::Offsets<'_>

source

fn tag_name(&self) -> &[u8]

source

fn tag_name_offset(&self) -> Self::Offsets<'_>

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Strings for MappedStrings

§

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

source§

impl Strings for VecStrings

§

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