Struct db_rs::lookup_list::LookupList
source · pub struct LookupList<K, V>{
pub logger: Logger,
/* private fields */
}
Expand description
A special case of crate::lookup::LookupTable where the value of the HashMap is a Vec<V>
.
Fields§
§logger: Logger
Implementations§
source§impl<K, V> LookupList<K, V>
impl<K, V> LookupList<K, V>
pub fn push(&mut self, k: K, v: V) -> DbResult<()>
pub fn create_key(&mut self, key: K) -> DbResult<Option<Vec<V>>>
pub fn remove(&mut self, key: &K, idx: usize) -> DbResult<bool>
pub fn get(&self) -> &HashMap<K, Vec<V>>
pub fn clear(&mut self) -> DbResult<()>
pub fn clear_key(&mut self, key: &K) -> DbResult<Option<Vec<V>>>
Trait Implementations§
source§impl<K, V> Debug for LookupList<K, V>
impl<K, V> Debug for LookupList<K, V>
source§impl<K, V> Table for LookupList<K, V>
impl<K, V> Table for LookupList<K, V>
Auto Trait Implementations§
impl<K, V> Freeze for LookupList<K, V>
impl<K, V> RefUnwindSafe for LookupList<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for LookupList<K, V>
impl<K, V> Sync for LookupList<K, V>
impl<K, V> Unpin for LookupList<K, V>
impl<K, V> UnwindSafe for LookupList<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