[][src]Struct mech_core::TableIndex

pub struct TableIndex {
    pub map: HashMap<u64, Table>,
    pub aliases: HashMap<u64, u64>,
    pub changed_this_round: HashSet<(u64, Index)>,
}

Fields

map: HashMap<u64, Table>aliases: HashMap<u64, u64>changed_this_round: HashSet<(u64, Index)>

Methods

impl TableIndex[src]

pub fn new(capacity: usize) -> TableIndex[src]

pub fn clear(&mut self)[src]

pub fn len(&self) -> usize[src]

pub fn add_alias(&mut self, table: u64, alias: u64) -> Result<(), ErrorType>[src]

pub fn get(&self, table_id: u64) -> Option<&Table>[src]

pub fn get_mut(&mut self, table_id: u64) -> Option<&mut Table>[src]

pub fn insert(&mut self, table: Table)[src]

pub fn contains(&mut self, table: u64) -> bool[src]

pub fn remove(&mut self, table: &u64)[src]

Trait Implementations

impl Clone for TableIndex[src]

impl Debug for TableIndex[src]

impl PartialEq<TableIndex> for TableIndex[src]

impl StructuralPartialEq for TableIndex[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.