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> 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