diff --git a/core/src/util/mod.rs b/core/src/util/mod.rs index 0dc383e..6541cc8 100644 --- a/core/src/util/mod.rs +++ b/core/src/util/mod.rs @@ -534,14 +534,17 @@ impl MutOnly { Self { value } } + #[inline] pub fn as_mut(&mut self) -> &mut T { &mut self.value } + #[inline] pub fn as_ptr(&self) -> *mut T { &self.value as *const T as *mut T } + #[inline] pub fn into_inner(self) -> T { self.value }