[−][src]Struct mech_core::TableIndex
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]
fn clone(&self) -> TableIndex
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TableIndex
[src]
impl PartialEq<TableIndex> for TableIndex
[src]
fn eq(&self, other: &TableIndex) -> bool
[src]
fn ne(&self, other: &TableIndex) -> bool
[src]
impl StructuralPartialEq for TableIndex
[src]
Auto Trait Implementations
impl RefUnwindSafe for TableIndex
impl Send for TableIndex
impl Sync for TableIndex
impl Unpin for TableIndex
impl UnwindSafe for TableIndex
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,