Searched refs:ManuallyDrop (Results 1 – 15 of 15) sorted by relevance
| /linux/rust/zerocopy/src/ |
| H A D | impls.rs | 735 const _: () = unsafe { unsafe_impl!(T: ?Sized + Immutable => Immutable for ManuallyDrop<T>) }; 737 impl_for_transmute_from!(T: ?Sized + TryFromBytes => TryFromBytes for ManuallyDrop<T>[T]); 738 impl_for_transmute_from!(T: ?Sized + FromZeros => FromZeros for ManuallyDrop<T>[T]); 739 impl_for_transmute_from!(T: ?Sized + FromBytes => FromBytes for ManuallyDrop<T>[T]); 740 impl_for_transmute_from!(T: ?Sized + IntoBytes => IntoBytes for ManuallyDrop<T>[T]); 748 const _: () = unsafe { unsafe_impl!(T: ?Sized + Unaligned => Unaligned for ManuallyDrop<T>) }; 749 assert_unaligned!(ManuallyDrop<()>, ManuallyDrop<u8>); 761 unsafe impl<T: ?Sized> HasTag for ManuallyDrop<T> { implementation 801 for ManuallyDrop<T> 1538 ManuallyDrop<bool> in test_impls() [all …]
|
| H A D | macros.rs | 96 use $crate::util::macro_util::core_reexport::mem::ManuallyDrop; 108 src: ManuallyDrop<Src>, 109 dst: ManuallyDrop<Dst>, 133 e = ManuallyDrop::into_inner(unsafe { u.src }); 157 $crate::util::macro_util::must_use(ManuallyDrop::into_inner(dst))
|
| H A D | wrappers.rs | 358 copy: ManuallyDrop<T>, in update() 366 let copy = unsafe { ManuallyDrop::take(&mut self.copy) }; in update() 388 let mut write_back = WriteBackOnDrop { copy: ManuallyDrop::new(copy), slf: self }; in update()
|
| H A D | lib.rs | 378 mem::{self, ManuallyDrop, MaybeUninit as CoreMaybeUninit}, 1153 unsafe_impl_known_layout!(T: ?Sized + KnownLayout => #[repr(T)] ManuallyDrop<T>); 6505 assert_eq!(<ManuallyDrop<$ty> as KnownLayout>::LAYOUT, expect); in test_known_layout()
|
| /linux/rust/kernel/ |
| H A D | regulator.rs | 28 mem::ManuallyDrop, // 307 let regulator = ManuallyDrop::new(self); in try_into_enabled() 317 regulator: ManuallyDrop::into_inner(regulator), in try_into_enabled() 336 let regulator = ManuallyDrop::new(self); in try_into_disabled() 346 regulator: ManuallyDrop::into_inner(regulator), in try_into_disabled()
|
| H A D | debugfs.rs | 21 use core::mem::ManuallyDrop; 370 entry: ManuallyDrop::new(Entry::dynamic_dir(name, Some(parent_entry))), in scope() 523 entry: ManuallyDrop<Entry<'dir>>, 536 entry: ManuallyDrop::new(Entry::dir(name, Some(&*self.entry))), 701 entry: ManuallyDrop::new(Entry::empty()), 707 ManuallyDrop::into_inner(self.entry) 720 entry: ManuallyDrop::new(Entry::dir(name, None)),
|
| /linux/rust/syn/ |
| H A D | drops.rs | 4 use std::mem::ManuallyDrop; 10 pub(crate) struct NoDrop<T: ?Sized>(ManuallyDrop<T>); 17 NoDrop(ManuallyDrop::new(value)) in new()
|
| /linux/rust/zerocopy/src/pointer/ |
| H A D | transmute.rs | 15 mem::{ManuallyDrop, MaybeUninit}, 256 unsafe impl<T: ?Sized> InvariantsEq<T> for ManuallyDrop<T> {} implementation 258 unsafe impl<T: ?Sized> InvariantsEq<ManuallyDrop<T>> for T {} 389 const _: () = unsafe { unsafe_impl_for_transparent_wrapper!(pub T: ?Sized => ManuallyDrop<T>) };
|
| /linux/rust/kernel/sync/ |
| H A D | aref.rs | 22 mem::ManuallyDrop, 147 ManuallyDrop::new(me).ptr
|
| /linux/rust/zerocopy/src/util/ |
| H A D | mod.rs | 19 mem::{self, ManuallyDrop}, 310 src: ManuallyDrop<Src>, in transmute_unchecked() 311 dst: ManuallyDrop<Dst>, in transmute_unchecked() 333 unsafe { ManuallyDrop::into_inner(Transmute { src: ManuallyDrop::new(src) }.dst) } in transmute_unchecked()
|
| /linux/rust/kernel/alloc/ |
| H A D | kbox.rs | 35 ManuallyDrop, 202 ManuallyDrop::new(b).0.as_ptr()
|
| H A D | kvec.rs | 35 ManuallyDrop, 603 let mut me = ManuallyDrop::new(self); in clear() 1254 let me = ManuallyDrop::new(self); in collect()
|
| /linux/rust/zerocopy-derive/derive/ |
| H A D | known_layout.rs | 215 #core::mem::ManuallyDrop< in derive_known_layout_for_repr_c_struct()
|
| H A D | try_from_bytes.rs | 149 #field_name: #core::mem::ManuallyDrop<#variant_struct_ident #ty_generics>, in generate_variants_union()
|
| /linux/rust/proc-macro2/ |
| H A D | fallback.rs | 19 use core::mem::ManuallyDrop; 99 let nodrop = ManuallyDrop::new(self); in take_inner()
|