Function cpp_utils::static_cast [] [src]

pub fn static_cast<R, T: StaticCast<R>>(ptr: *const T) -> *const R

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