HashTransTable

Type Alias HashTransTable 

Source
pub type HashTransTable<KeyType> = HashMap<KeyType, GeneralSamNodeID>;

Aliased Type§

pub struct HashTransTable<KeyType> { /* private fields */ }

Trait Implementations§

Source§

impl<KeyType: Hash + Eq + Clone> ConstructiveTransitionTable for HashTransTable<KeyType>

Source§

fn insert(&mut self, key: KeyType, trans: GeneralSamNodeID)

Source§

fn from_kv_iter<'b, Iter: IntoIterator<Item = (Self::KeyType, &'b GeneralSamNodeID)>>( iter: Iter, ) -> Self
where Self::KeyType: 'b,

Source§

impl<KeyType: Hash + Eq + Clone> TransitionTable for HashTransTable<KeyType>

Source§

type KeyType = KeyType

Source§

type IterType<'a> = WithKeyDerefedIter<'a, KeyType, Iter<'a, KeyType, usize>> where Self: 'a, Self::KeyType: 'a

Source§

fn get(&self, key: &KeyType) -> Option<&GeneralSamNodeID>

Source§

fn get_mut(&mut self, key: &KeyType) -> Option<&mut GeneralSamNodeID>

Source§

fn iter(&self) -> Self::IterType<'_>

Source§

fn from_kv_iter<'b, Iter: IntoIterator<Item = (KeyType, &'b GeneralSamNodeID)>>( iter: Iter, ) -> Self
where Self::KeyType: 'b,

Source§

fn contains_key(&self, key: &Self::KeyType) -> bool

Source§

fn transitions(&self) -> TransitionIter<'_, Self::KeyType, Self::IterType<'_>>