pub struct Table<T: Default + Clone> { /* private fields */ }
Expand description
An extremely optimized fixed-size hash table implementation.
Implementations§
Source§impl<T: Default + Clone> Table<T>
impl<T: Default + Clone> Table<T>
Sourcepub fn get_vector_mut(&mut self, x: u32, y: u32) -> &mut T
pub fn get_vector_mut(&mut self, x: u32, y: u32) -> &mut T
Get a mutable reference to an entry from a 2D key.
Sourcepub fn get_vector(&self, x: u32, y: u32) -> &T
pub fn get_vector(&self, x: u32, y: u32) -> &T
Get a reference to an entry from a 2D key.
Sourcepub fn get_scalar(&self, s: u32) -> &T
pub fn get_scalar(&self, s: u32) -> &T
Get a reference to an entry from a scalar key.
Sourcepub fn get_scalar_mut(&mut self, s: u32) -> &mut T
pub fn get_scalar_mut(&mut self, s: u32) -> &mut T
Get a mutable reference to an entry from a scalar key.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Table<T>
impl<T> RefUnwindSafe for Table<T>where
T: RefUnwindSafe,
impl<T> Send for Table<T>where
T: Send,
impl<T> Sync for Table<T>where
T: Sync,
impl<T> Unpin for Table<T>where
T: Unpin,
impl<T> UnwindSafe for Table<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more