pub fn or_default(self) -> &'a mut V
        where
            V: Default,
        {
            if let Some(index) = self.index {
                &mut self.map.0[index].1
            } else {
                self.map.0.push((self.key, Default::default()));
                &mut self.map.0.last_mut().unwrap().1
            }
        }
/// Inserts a default-constructed value in the entry if it is vacant and
/// returns a mutable reference to it. Otherwise a mutable reference to
/// an already existent value is returned.
Inserts a default-constructed value in the entry if it is vacant and
returns a mutable reference to it. Otherwise a mutable reference to
an already existent value is returned.
Inserts a default - constructed value in the entry if it is vacant and returns a mutable reference to it . Otherwise a mutable reference to an already existent value is returned .
pub fn or_default(self) -> &'a mut V
        where
            V: Default,
        {
            if let Some(index) = self.index {
                &mut self.map.0[index].1
            } else {
                self.map.0.push((self.key, Default::default()));
                &mut self.map.0.last_mut().unwrap().1
            }
        }
pub fn or_default ( self ) -> & ' a mut V where V : Default , { if let Some ( index ) = self . index { & mut self . map . 0 [ index ] . 1 } else { self . map . 0 . push ( ( self . key , Default :: default ( ) ) ) ; & mut self . map . 0 . last_mut ( ) . unwrap ( ) . 1 } }
Inserts a default-constructed value in the entry if it is vacant and
returns a mutable reference to it.
Inserts a default - constructed value in the entry if it is vacant and returns a mutable reference to it .
self
self