fn insert(&mut self, value: T) -> CallIdx {
        let index = if let Some(index) = self.inner.iter_mut().position(|v| v.is_none()) {
            self.inner[index] = Some(value);
            index
        } else {
            self.inner.push(Some(value));
            self.inner.len() - 1
        };

        Self::to_call_index(index)
    }
/// Insert a new value into the list, returning an index that is guaranteed to be unique until
/// the value is removed from the list.
Insert a new value into the list, returning an index that is guaranteed to be unique until
the value is removed from the list.
Insert a new value into the list returning an index that is guaranteed to be unique until the value is removed from the list .
fn insert(&mut self, value: T) -> CallIdx {
        let index = if let Some(index) = self.inner.iter_mut().position(|v| v.is_none()) {
            self.inner[index] = Some(value);
            index
        } else {
            self.inner.push(Some(value));
            self.inner.len() - 1
        };
        Self::to_call_index(index)
    }
fn insert ( & mut self , value : T ) -> CallIdx { let index = if let Some ( index ) = self . inner . iter_mut ( ) . position ( | v | v . is_none ( ) ) { self . inner [ index ] = Some ( value ) ; index } else { self . inner . push ( Some ( value ) ) ; self . inner . len ( ) - 1 } ; Self :: to_call_index ( index ) }
Insert a new value into the list, returning an index that is guaranteed to be unique until
the value is removed from the list.
Insert a new value into the list returning an index that is guaranteed to be unique until the value is removed from the list .
&mut self
value
T
&mut self
value
T