pub fn insert_with<F>(self, f: F) -> &'a mut A::Item
    where
        F: FnOnce(K) -> A::Item,
    {
        let element = f(self.key);
        self.set.vec.insert(self.idx, element);
        &mut self.set.vec[self.idx]
    }
/// Insert an element using the given constructor.
///
/// The ordering of the computed element must match that of the key.
Insert an element using the given constructor.
The ordering of the computed element must match that of the key.
Insert an element using the given constructor . The ordering of the computed element must match that of the key .
pub fn insert_with<F>(self, f: F) -> &'a mut A::Item
    where
        F: FnOnce(K) -> A::Item,
    {
        let element = f(self.key);
        self.set.vec.insert(self.idx, element);
        &mut self.set.vec[self.idx]
    }
pub fn insert_with < F > ( self , f : F ) -> & ' a mut A :: Item where F : FnOnce ( K ) -> A :: Item , { let element = f ( self . key ) ; self . set . vec . insert ( self . idx , element ) ; & mut self . set . vec [ self . idx ] }
Insert an element using the given constructor.
Insert an element using the given constructor .
self
f
F
self
f
F