mirror of
https://github.com/openharmony/third_party_rust_tinyvec.git
synced 2026-07-19 14:23:33 -04:00
alter docs. (#106)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user