Home
last modified time | relevance | path

Searched refs:NoDrop (Results 1 – 2 of 2) sorted by relevance

/linux/rust/syn/
H A Ddrops.rs10 pub(crate) struct NoDrop<T: ?Sized>(ManuallyDrop<T>); struct
12 impl<T> NoDrop<T> { implementation
17 NoDrop(ManuallyDrop::new(value)) in new()
21 impl<T: ?Sized> Deref for NoDrop<T> { implementation
28 impl<T: ?Sized> DerefMut for NoDrop<T> { implementation
H A Dpunctuated.rs25 use crate::drops::{NoDrop, TrivialDrop};
123 inner: Box::new(NoDrop::new(PrivateIter { in iter()
134 inner: Box::new(NoDrop::new(PrivateIterMut { in iter_mut()
750 inner: Box<NoDrop<dyn IterTrait<'a, T> + 'a>>,
754 fn clone_box(&self) -> Box<NoDrop<dyn IterTrait<'a, T> + 'a>>; in clone_box()
772 inner: Box::new(NoDrop::new(iter::empty())), in empty_punctuated_iter()
853 fn clone_box(&self) -> Box<NoDrop<dyn IterTrait<'a, T> + 'a>> { in clone_box()
854 Box::new(NoDrop::new(self.clone())) in clone_box()
864 inner: Box<NoDrop<dyn IterMutTrait<'a, T, Item = &'a mut T> + 'a>>,
887 inner: Box::new(NoDrop::new(iter::empty())), in empty_punctuated_iter_mut()