fn check_imservice(
    imservice: *mut IMService,
    im: InputMethod
) -> Result<&'static mut IMService, &'static str>
Expand description

Convenience method for referencing the IMService raw pointer, and for verifying that the input method passed along matches the one in the imservice.

The lifetime of the returned value is ’static, due to the fact that the lifetime of a raw pointer is undefined. Care must be take not to exceed the lifetime of the pointer with the reference, especially not to store it.