pub struct HashGeometryTable<K, V> { /* private fields */ }Expand description
Hash-backed keyed geometry table implementation.
This is the default concrete table type used by GeometryTableRegistry.
Implementations§
Source§impl<K, V> HashGeometryTable<K, V>
impl<K, V> HashGeometryTable<K, V>
Trait Implementations§
Source§impl<K, V> Default for HashGeometryTable<K, V>
impl<K, V> Default for HashGeometryTable<K, V>
Source§impl<K, V> IsGeometryTable for HashGeometryTable<K, V>where
K: IsGeometryKey,
V: GeometricPrimitive,
impl<K, V> IsGeometryTable for HashGeometryTable<K, V>where
K: IsGeometryKey,
V: GeometricPrimitive,
Source§fn get(&self, key: &Self::Key) -> Option<Self::Item>
fn get(&self, key: &Self::Key) -> Option<Self::Item>
Returns the item stored at
key, if present.Source§fn insert(&mut self, key: Self::Key, value: Self::Item) -> Result<(), ErrorsJSL>
fn insert(&mut self, key: Self::Key, value: Self::Item) -> Result<(), ErrorsJSL>
Inserts or replaces the item stored at
key.Source§fn remove(&mut self, key: &Self::Key) -> Option<Self::Item>
fn remove(&mut self, key: &Self::Key) -> Option<Self::Item>
Removes and returns the item stored at
key, if present.Source§fn contains_key(&self, key: &Self::Key) -> bool
fn contains_key(&self, key: &Self::Key) -> bool
Returns
true if key exists in the table.Source§fn intersection(&self, other: &Self) -> Self
fn intersection(&self, other: &Self) -> Self
Computes the intersection of two tables.
Source§fn iter(&self) -> Box<dyn Iterator<Item = (Self::Key, Self::Item)> + '_>
fn iter(&self) -> Box<dyn Iterator<Item = (Self::Key, Self::Item)> + '_>
Iterates immutably over key/value pairs in the table.
Auto Trait Implementations§
impl<K, V> Freeze for HashGeometryTable<K, V>
impl<K, V> RefUnwindSafe for HashGeometryTable<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for HashGeometryTable<K, V>
impl<K, V> Sync for HashGeometryTable<K, V>
impl<K, V> Unpin for HashGeometryTable<K, V>
impl<K, V> UnsafeUnpin for HashGeometryTable<K, V>
impl<K, V> UnwindSafe for HashGeometryTable<K, V>where
K: UnwindSafe,
V: 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