pub unsafe fn color32_luminance(c: Color32) -> Result<u8>
This function is unsafe because it may dereference raw pointers.