diff --git a/crates/primitives/src/sealed.rs b/crates/primitives/src/sealed.rs index 6c896d78b..8c1b3ed69 100644 --- a/crates/primitives/src/sealed.rs +++ b/crates/primitives/src/sealed.rs @@ -75,6 +75,15 @@ impl Sealed { self.into_parts() } + /// Clone the inner item. + #[inline(always)] + pub fn clone_inner(&self) -> T + where + T: Clone, + { + self.inner.clone() + } + /// Get the inner item. #[inline(always)] pub const fn inner(&self) -> &T {