Struct Dropper
pub(in ::collections::vec_deque) struct Dropper<'a, T>(pub(in ::collections::vec_deque) &'a mut [T]);
Runs the destructor for all items in the slice when it gets dropped (normally or during unwinding).
Fields
0: &'a mut [T]
Trait Implementations
impl<T> Drop for Dropper<'_, T>
fn drop(&mut self)
Auto Trait Implementations
impl<'a, T> !UnwindSafe for Dropper<'a, T>
impl<'a, T> Freeze for Dropper<'a, T>
where
&'a mut [T]: Freeze,
impl<'a, T> RefUnwindSafe for Dropper<'a, T>
where
&'a mut [T]: RefUnwindSafe,
impl<'a, T> Send for Dropper<'a, T>
where
&'a mut [T]: Send,
impl<'a, T> Sync for Dropper<'a, T>
where
&'a mut [T]: Sync,
impl<'a, T> Unpin for Dropper<'a, T>
where
&'a mut [T]: Unpin,
impl<'a, T> UnsafeUnpin for Dropper<'a, T>
where
&'a mut [T]: UnsafeUnpin,
Blanket Implementations
impl<T> Any for Dropper<'a, T>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Dropper<'a, T>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Dropper<'a, T>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for Dropper<'a, T>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> SizeHint for Dropper<'a, T>
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for Dropper<'a, T>
impl<T, U> Into<U> for Dropper<'a, T>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for Dropper<'a, T>
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for Dropper<'a, T>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>