Rollup merge of #34818 - frewsxcv:vecdoc, r=GuillaumeGomez
Mention where `std::vec` structs originate from. None
This commit is contained in:
commit
8959374154
1 changed files with 11 additions and 0 deletions
|
@ -1603,6 +1603,12 @@ impl<'a, T> FromIterator<T> for Cow<'a, [T]> where T: Clone {
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
/// An iterator that moves out of a vector.
|
||||
///
|
||||
/// This `struct` is created by the `into_iter` method on [`Vec`][`Vec`] (provided
|
||||
/// by the [`IntoIterator`] trait).
|
||||
///
|
||||
/// [`Vec`]: struct.Vec.html
|
||||
/// [`IntoIterator`]: ../../std/iter/trait.IntoIterator.html
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
pub struct IntoIter<T> {
|
||||
_buf: RawVec<T>,
|
||||
|
@ -1710,6 +1716,11 @@ impl<T> Drop for IntoIter<T> {
|
|||
}
|
||||
|
||||
/// A draining iterator for `Vec<T>`.
|
||||
///
|
||||
/// This `struct` is created by the [`drain`] method on [`Vec`].
|
||||
///
|
||||
/// [`drain`]: struct.Vec.html#method.drain
|
||||
/// [`Vec`]: struct.Vec.html
|
||||
#[stable(feature = "drain", since = "1.6.0")]
|
||||
pub struct Drain<'a, T: 'a> {
|
||||
/// Index of tail to preserve
|
||||
|
|
Loading…
Add table
Reference in a new issue