pub struct Collection<In, Ix> { /* private fields */ }
Implementations§
Source§impl<In, Ix> Collection<In, Ix>where
Ix: Index<In>,
impl<In, Ix> Collection<In, Ix>where
Ix: Index<In>,
pub fn new(ix: Ix) -> Self
pub fn get(&self, key: Key) -> Option<&In>
pub fn iter(&self) -> impl Iterator<Item = (&Key, &In)>
pub fn insert(&mut self, value: In) -> Key
pub fn update<F>(&mut self, key: Key, f: F)
pub fn delete(&mut self, key: Key)
pub fn query<'t>(&'t self) -> Ix::Query<'t, In>
pub fn len(&self) -> usize
Auto Trait Implementations§
impl<In, Ix> Freeze for Collection<In, Ix>where
Ix: Freeze,
impl<In, Ix> RefUnwindSafe for Collection<In, Ix>where
Ix: RefUnwindSafe,
In: RefUnwindSafe,
impl<In, Ix> Send for Collection<In, Ix>
impl<In, Ix> Sync for Collection<In, Ix>
impl<In, Ix> Unpin for Collection<In, Ix>
impl<In, Ix> UnwindSafe for Collection<In, Ix>where
Ix: UnwindSafe,
In: 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