glib::translate

Function const_override

Source
pub fn const_override<T>(ptr: *mut T) -> *const T
Expand description

Overrides pointer constness.

Use when the C API need const pointer, but function with IsA<T> constraint, that usually don’t have const pointer conversion.