Struct smallvec::SetLenOnDrop
source · pub(crate) struct SetLenOnDrop<'a> {
pub(crate) len: &'a mut usize,
pub(crate) local_len: usize,
}
Expand description
Set the length of the vec when the SetLenOnDrop
value goes out of scope.
Copied from https://github.com/rust-lang/rust/pull/36355
Fields§
§len: &'a mut usize
§local_len: usize
Implementations§
Trait Implementations§
Auto Trait Implementations§
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> !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