fn remove(&mut self, seq: u64) -> Result<Option<ConnectionIdEntry>> {
        if self.inner.len() <= 1 {
            return Err(Error::OutOfIdentifiers);
        }

        Ok(self
            .inner
            .iter()
            .position(|e| e.seq == seq)
            .and_then(|index| self.inner.remove(index)))
    }
/// Removes the element in the collection having the provided `seq`.
///
/// If this method is called when there remains a single element in the
/// collection, this method raises an [`OutOfIdentifiers`].
///
/// Returns `Some` if the element was in the collection and removed, or
/// `None` if it was not and nothing was modified.
///
/// [`OutOfIdentifiers`]: enum.Error.html#OutOfIdentifiers
Removes the element in the collection having the provided `seq`.
If this method is called when there remains a single element in the
collection, this method raises an [`OutOfIdentifiers`].

Returns `Some` if the element was in the collection and removed, or
`None` if it was not and nothing was modified.


Removes the element in the collection having the provided ` seq ` . If this method is called when there remains a single element in the collection this method raises an [ ` OutOfIdentifiers ` ] . Returns ` Some ` if the element was in the collection and removed or ` None ` if it was not and nothing was modified .
fn remove(&mut self, seq: u64) -> Result<Option<ConnectionIdEntry>> {
        if self.inner.len() <= 1 {
            return Err(Error::OutOfIdentifiers);
        }
        Ok(self
            .inner
            .iter()
            .position(|e| e.seq == seq)
            .and_then(|index| self.inner.remove(index)))
    }
fn remove ( & mut self , seq : u64 ) -> Result < Option < ConnectionIdEntry > > { if self . inner . len ( ) <= 1 { return Err ( Error :: OutOfIdentifiers ) ; } Ok ( self . inner . iter ( ) . position ( | e | e . seq == seq ) . and_then ( | index | self . inner . remove ( index ) ) ) }
Removes the element in the collection having the provided `seq`.
Removes the element in the collection having the provided ` seq ` .
&mut self
seq
u64
&mut self
seq
u64