MCPcopy Create free account
hub / github.com/Lokathor/tinyvec / drain

Method drain

src/tinyvec.rs:852–859  ·  view source on GitHub ↗
(
    &mut self, range: R,
  )

Source from the content-addressed store, hash-verified

850 /// ```
851 #[inline]
852 pub fn drain<R: RangeBounds<usize>>(
853 &mut self, range: R,
854 ) -> TinyVecDrain<'_, A> {
855 match self {
856 TinyVec::Inline(i) => TinyVecDrain::Inline(i.drain(range)),
857 TinyVec::Heap(h) => TinyVecDrain::Heap(h.drain(range)),
858 }
859 }
860
861 /// Clone each element of the slice into this vec.
862 /// ```rust

Callers 3

appendMethod · 0.45
fuzz_cycleFunction · 0.45
fuzz_cycleFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected