Function kvarn::prelude::networking::prelude::utils::prelude::compact_str::core::ptr::from_mut

1.76.0 (const: 1.76.0) · source ·
pub const fn from_mut<T>(r: &mut T) -> *mut T
where T: ?Sized,
Available on non-crate feature miri-test-libstd only.
Expand description

Convert a mutable reference to a raw pointer.

This is equivalent to r as *mut T, but is a bit safer since it will never silently change type or mutability, in particular if the code is refactored.