Function cpp_utils::unsafe_static_cast_mut [] [src]

pub unsafe fn unsafe_static_cast_mut<R, T: UnsafeStaticCast<R>>(ptr: *mut T)
                                                                -> *mut R

Converts type of a mutable pointer using UnsafeStaticCast implementation of the type. ptr must be either a null pointer or a valid pointer to an instance of R class or a class derived from R. If ptr is null, this function does nothing and returns null pointer.