alter docs. (#106)

This commit is contained in:
Lokathor
2020-08-09 10:27:55 -06:00
committed by GitHub
parent 8a47545150
commit 3ff291c63b
+5
View File
@@ -434,6 +434,11 @@ impl<A: Array> TinyVec<A> {
/// Creates a draining iterator that removes the specified range in the vector
/// and yields the removed items.
///
/// **Note: This method has significant performance issues compared to
/// matching on the TinyVec and then calling drain on the Inline or Heap value
/// inside. The draining iterator has to branch on every single access. It is
/// provided for simplicity and compatability only.**
///
/// ## Panics
/// * If the start is greater than the end
/// * If the end is past the edge of the vec.