Trait c509_certificate::tables::TableTrait

source ·
pub(crate) trait TableTrait<K, V> {
    // Required methods
    fn new() -> Self;
    fn add(&mut self, k: K, v: V);
    fn get_map(&self) -> &BiMap<K, V>;
}
Expand description

A trait that represents a table structure with key-value pairs.

§Type Parameters

  • K - The type of the keys in the table.
  • V - The type of the values in the table.

Required Methods§

source

fn new() -> Self

Create new instance of the map table.

source

fn add(&mut self, k: K, v: V)

Add the key-value pair to the map table.

source

fn get_map(&self) -> &BiMap<K, V>

Get the bimap of the map table.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T: Eq + Hash> TableTrait<i16, T> for IntTable<T>