We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
std::vec::PeekMut
1 parent 9d82de1 commit 59708b4Copy full SHA for 59708b4
library/alloc/src/vec/peek_mut.rs
@@ -1,6 +1,7 @@
1
use core::ops::{Deref, DerefMut};
2
3
use super::Vec;
4
+use crate::alloc::{Allocator, Global};
5
use crate::fmt;
6
7
/// Structure wrapping a mutable reference to the last item in a
@@ -11,8 +12,12 @@ use crate::fmt;
11
12
///
13
/// [`peek_mut`]: Vec::peek_mut
14
#[unstable(feature = "vec_peek_mut", issue = "122742")]
-pub struct PeekMut<'a, T> {
15
- vec: &'a mut Vec<T>,
+pub struct PeekMut<
16
+ 'a,
17
+ T,
18
+ #[unstable(feature = "allocator_api", issue = "32838")] A: Allocator = Global,
19
+> {
20
+ vec: &'a mut Vec<T, A>,
21
}
22
23
0 commit comments