Fields
map: HashMap<String, Vec<T>>Implementations
sourceimpl<T> OpMap<T>where
T: Clone + Default,
impl<T> OpMap<T>where
T: Clone + Default,
pub fn join(&mut self, other: OpMap<T>, sort_fn: fn(_: &T, _: &T) -> Ordering)
pub fn insert(&mut self, k: &str, v: T)
pub fn set(&mut self, k: &str, v: Vec<T>)
pub fn get(&mut self, k: &str) -> Option<&Vec<T>>
pub fn drain<P>(&mut self, k: &str, predicate: P) -> Vec<T>where
P: Fn(&T) -> bool,
pub fn from_vec<P>(v: Vec<T>, key_from_t: P) -> OpMap<T>where
P: Fn(&T) -> &str,
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for OpMap<T>where
T: RefUnwindSafe,
impl<T> Send for OpMap<T>where
T: Send,
impl<T> Sync for OpMap<T>where
T: Sync,
impl<T> Unpin for OpMap<T>where
T: Unpin,
impl<T> UnwindSafe for OpMap<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more