Struct alloc::vec::set_len_on_drop::SetLenOnDrop
source · pub(super) struct SetLenOnDrop<'a> {
len: &'a mut usize,
local_len: usize,
}
Fields§
§len: &'a mut usize
§local_len: usize
Implementations§
source§impl<'a> SetLenOnDrop<'a>
impl<'a> SetLenOnDrop<'a>
pub(super) fn new(len: &'a mut usize) -> Self
pub(super) fn increment_len(&mut self, increment: usize)
pub(super) fn current_len(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
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> !UnwindSafe for SetLenOnDrop<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more