Function cpp_utils::unsafe_static_cast [] [src]

pub unsafe fn unsafe_static_cast<R, T: UnsafeStaticCast<R>>(
    ptr: *const T
) -> *const R

Converts type of a const 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.