Trait LabelNames

Source
pub trait LabelNames {
    type LabelNames<'a>: GetIndex<Output = Vec<u8>>
       where Self: 'a;

    // Required method
    fn label_names(&self) -> Self::LabelNames<'_>;
}
Expand description

Trait for backend storage of label names (either in-memory or memory-mapped)

Required Associated Types§

Source

type LabelNames<'a>: GetIndex<Output = Vec<u8>> where Self: 'a

Required Methods§

Source

fn label_names(&self) -> Self::LabelNames<'_>

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 LabelNames for MappedLabelNames

Source§

type LabelNames<'a> = &'a FrontCodedList<Mmap, Mmap> where Self: 'a

Source§

impl LabelNames for VecLabelNames

Source§

type LabelNames<'a> = &'a [Vec<u8>] where Self: 'a