pub struct PeekMut<'a, T, A = Global>where
A: Allocator,{ /* private fields */ }
vec_peek_mut #122742)
Structure wrapping a mutable reference to the last item in a Vec.
This struct is created by the peek_mut method on Vec. See its documentation for more.
impl<'a, T, A> PeekMut<'a, T, A>where
A: Allocator,impl<T, A> Debug for PeekMut<'_, T, A>where
T: Debug,
A: Allocator,fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>
impl<'a, T, A> Deref for PeekMut<'a, T, A>where
A: Allocator,type Target = T
fn deref(&self) -> &<PeekMut<'a, T, A> as Deref>::Target
impl<'a, T, A> DerefMut for PeekMut<'a, T, A>where
A: Allocator,fn deref_mut(&mut self) -> &mut <PeekMut<'a, T, A> as Deref>::Target
impl<'a, T, A> Freeze for PeekMut<'a, T, A>
impl<'a, T, A> RefUnwindSafe for PeekMut<'a, T, A>where
A: RefUnwindSafe,
T: RefUnwindSafe,impl<'a, T, A> Send for PeekMut<'a, T, A>where
A: Send,
T: Send,impl<'a, T, A> Sync for PeekMut<'a, T, A>where
A: Sync,
T: Sync,impl<'a, T, A> Unpin for PeekMut<'a, T, A>
impl<'a, T, A = Global> !UnwindSafe for PeekMut<'a, T, A>
impl<T> Any for Twhere
T: 'static + ?Sized,impl<T> Borrow<T> for Twhere
T: ?Sized,impl<T> BorrowMut<T> for Twhere
T: ?Sized,impl<T> From<T> for T
fn from(t: T) -> T
Returns the argument unchanged.
impl<T, U> Into<U> for Twhere
U: From<T>,fn into(self) -> U
Calls U::from(self).
That is, this conversion is whatever the implementation of From<T> for U chooses to do.
impl<P, T> Receiver for Pwhere
P: Deref<Target = T> + ?Sized,
T: ?Sized,type Target = T
arbitrary_self_types #44874)
impl<T, U> TryFrom<U> for Twhere
U: Into<T>,type Error = Infallible
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for Twhere
U: TryFrom<T>,
© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/std/vec/struct.PeekMut.html