Function cpp_utils::static_cast_mut

source ·
pub fn static_cast_mut<R, T: StaticCast<R>>(ptr: *mut T) -> *mut R
Expand description

Converts type of a mutable pointer using StaticCast implementation of the type. If ptr is null, this function does nothing and returns null pointer.