pub trait HasNameIdTuple: HasConstLen {
    // Required methods
    fn const_name_for(&self, index: usize) -> Option<&'static str>;
    fn name_id_for(&self, index: usize) -> Option<u64>;
}
Expand description

Gets the id and const_name for the given index in a tuple

Required Methods§

source

fn const_name_for(&self, index: usize) -> Option<&'static str>

Gets the const_name for the entry at the given index

source

fn name_id_for(&self, index: usize) -> Option<u64>

Gets the name_id for the entry at the given index

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl HasNameIdTuple for ()

source§

fn const_name_for(&self, _index: usize) -> Option<&'static str>

source§

fn name_id_for(&self, _index: usize) -> Option<u64>

source§

impl<Head, Tail> HasNameIdTuple for (Head, Tail)
where Head: HasNameId, Tail: HasNameIdTuple,

source§

fn const_name_for(&self, index: usize) -> Option<&'static str>

source§

fn name_id_for(&self, index: usize) -> Option<u64>

Implementors§