pub fn drain<R>(&mut self, range: R) -> smallvec::Drain<A>
    where
        R: RangeBounds<usize>,
    {
        self.vec.drain(range)
    }
/// Creates a draining iterator that removes the specified range in the set
/// and yields the removed items.
///
/// Note 1: The element range is removed even if the iterator is only
/// partially consumed or not consumed at all.
///
/// Note 2: It is unspecified how many elements are removed from the set
/// if the `Drain` value is leaked.
///
/// # Panics
///
/// Panics if the starting point is greater than the end point or if
/// the end point is greater than the length of the set.
Creates a draining iterator that removes the specified range in the set
and yields the removed items.

Note 1: The element range is removed even if the iterator is only
partially consumed or not consumed at all.

Note 2: It is unspecified how many elements are removed from the set
if the `Drain` value is leaked.
Creates a draining iterator that removes the specified range in the set and yields the removed items . Note 1 : The element range is removed even if the iterator is only partially consumed or not consumed at all . Note 2 : It is unspecified how many elements are removed from the set if the ` Drain ` value is leaked .
pub fn drain<R>(&mut self, range: R) -> smallvec::Drain<A>
    where
        R: RangeBounds<usize>,
    {
        self.vec.drain(range)
    }
pub fn drain < R > ( & mut self , range : R ) -> smallvec :: Drain < A > where R : RangeBounds < usize > , { self . vec . drain ( range ) }
Creates a draining iterator that removes the specified range in the set
and yields the removed items.
Creates a draining iterator that removes the specified range in the set and yields the removed items .
&mut self
range
R
&mut self
range
R
panics
Panics if the starting point is greater than the end point or if
the end point is greater than the length of the set.
Panics if the starting point is greater than the end point or if the end point is greater than the length of the set .