Trait OptStrings

Source
pub trait OptStrings: MaybeStrings + PropertiesBackend {
    type Offsets<'a>: GetIndex<Output = u64> + 'a
       where Self: 'a;

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

Trait implemented by all implementors of MaybeStrings but NoStrings

Required Associated Types§

Source

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

Required Methods§

Source

fn message(&self) -> PropertiesResult<'_, &[u8], Self>

Source

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

Source

fn tag_name(&self) -> PropertiesResult<'_, &[u8], Self>

Source

fn tag_name_offset(&self) -> PropertiesResult<'_, Self::Offsets<'_>, 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 OptStrings for MappedStrings

Source§

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

Source§

impl OptStrings for OptMappedStrings

Source§

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

Source§

impl OptStrings for VecStrings

Source§

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