Home
last modified time | relevance | path

Searched refs:ManuallyDrop (Results 1 – 15 of 15) sorted by relevance

/linux/rust/zerocopy/src/
H A Dimpls.rs735 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 Dmacros.rs96 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 Dwrappers.rs358 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 Dlib.rs378 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 Dregulator.rs28 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 Ddebugfs.rs21 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 Ddrops.rs4 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 Dtransmute.rs15 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 Daref.rs22 mem::ManuallyDrop,
147 ManuallyDrop::new(me).ptr
/linux/rust/zerocopy/src/util/
H A Dmod.rs19 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 Dkbox.rs35 ManuallyDrop,
202 ManuallyDrop::new(b).0.as_ptr()
H A Dkvec.rs35 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 Dknown_layout.rs215 #core::mem::ManuallyDrop< in derive_known_layout_for_repr_c_struct()
H A Dtry_from_bytes.rs149 #field_name: #core::mem::ManuallyDrop<#variant_struct_ident #ty_generics>, in generate_variants_union()
/linux/rust/proc-macro2/
H A Dfallback.rs19 use core::mem::ManuallyDrop;
99 let nodrop = ManuallyDrop::new(self); in take_inner()