Struct SetLenOnDrop
pub(in ::vec) struct SetLenOnDrop<'a> { pub(in ::vec::set_len_on_drop) len: &'a mut usize, pub(in ::vec::set_len_on_drop) local_len: usize }
Fields
len: &'a mut usizelocal_len: usize
Implementations
impl<'a> SetLenOnDrop<'a>
fn new(len: &'a mut usize) -> Selffn increment_len(&mut self, increment: usize)fn current_len(&self) -> usize
Trait Implementations
impl Drop for SetLenOnDrop<'_>
fn drop(&mut self)
Auto Trait Implementations
impl<'a> !UnwindSafe for SetLenOnDrop<'a>
impl<'a> Freeze for SetLenOnDrop<'a>
impl<'a> RefUnwindSafe for SetLenOnDrop<'a>
impl<'a> Send for SetLenOnDrop<'a>
impl<'a> Sync for SetLenOnDrop<'a>
impl<'a> Unpin for SetLenOnDrop<'a>
impl<'a> UnsafeUnpin for SetLenOnDrop<'a>
Blanket Implementations
impl<T> Any for SetLenOnDrop<'a>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for SetLenOnDrop<'a>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for SetLenOnDrop<'a>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for SetLenOnDrop<'a>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> SizeHint for SetLenOnDrop<'a>
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for SetLenOnDrop<'a>
impl<T, U> Into<U> for SetLenOnDrop<'a>
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 SetLenOnDrop<'a>
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 SetLenOnDrop<'a>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>