We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 30c49ef commit 8e6fa42Copy full SHA for 8e6fa42
utils/zerofrom/src/zf_transparent.rs
@@ -13,6 +13,7 @@ use alloc::boxed::Box;
13
/// `Outer` is `repr(transparent)` and has one non-zero-sized field
14
/// of type `Inner`.
15
#[cfg(feature = "alloc")]
16
+#[inline(always)]
17
pub unsafe fn cast_transparent_box<Outer, Inner>(inner: Box<Inner>) -> Box<Outer> {
18
// Safety:
19
//
0 commit comments